Case
Lists cases
Changed onget/cases
Request
- Base URLhttp://localhost:3000/api
- URLhttp://localhost:3000/api/cases
- Authnone declared
Query parameters
pageinteger
The pages of cases to skip before starting to collect the result set
limitinteger
The number of items to return
count_limitinteger
The maximum number of documents that will be counted in mongoDB to make queries faster
sort_bystring
Keyword to sort by
orderstring
Sorting order
qstring
The search query
Response
OK
Example response
{
"cases": [
{
"location": {
"country": "GB"
},
"travelHistory": {
"travel": [
{
"location": {
"country": "CR",
"administrativeAreaLevel1": "Any province in Costa Rica",
"administrativeAreaLevel2": "Any canton in Costa Rica",
"administrativeAreaLevel3": "Any district in Costa Rica",
"place": "Boston Children's Hospital",
"name": "Lyon, Auvergne-Rhône-Alpes, France"
}
}
]
},
"vaccines": [
{
"name": "AstraZeneca",
"batch": "PV12345"
}
]
}
]
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- warning