Public
Documentation Settings

v0.2

This is the API model for CoEpi Server

cenreport

POSTSubmit symptom or infection report

https://coepi.wolk.com:8080/cenreport

Users submit symptom / infection reports and reveal the secret CENKey in their application

HEADERS
Content-Type

application/json

Bodyraw
{
    "reportId": "<string>",
    "report": "<string>",
    "cenKeys": [
        "<string>"
    ]
}
Example Request
curl
curl --location 'https://coepi.wolk.com:8080/cenreport' \
--data '{
    "reportId": "<string>",
    "report": "<string>",
    "cenKeys": [
        "<string>"
    ]
}'
500 Internal Server Error
Example Response
No response body
This request doesn't return any response body
Content-Type

text/plain

GETReturns a list of reports associated with a CEN Key

https://coepi.wolk.com:8080/cenreport/:cenkey
PATH VARIABLES
cenkey

<string>

(Required) CEN Key for which we need to query the reports

Example Request
curl
curl --location 'https://coepi.wolk.com:8080/cenreport/:cenkey'
400 Bad Request
Example Response
No response body
This request doesn't return any response body
Content-Type

text/plain

GETReturns all cenKeys generated between the range [timestamp - 3600, timestamp)

https://coepi.wolk.com:8080/cenkeys/:timestamp
PATH VARIABLES
timestamp

<integer>

(Required) Timestamp in unix epoch format

Example Request
curl
curl --location 'https://coepi.wolk.com:8080/cenkeys/:timestamp'
500 Internal Server Error
Example Response
No response body
This request doesn't return any response body
Content-Type

text/plain