...
Code | Description | |||||
200 | OK application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Internal Server error |
...
Status | |||
---|---|---|---|
|
...
|
Creates a new case, and associates it with the organization of logged in user.
See MVP1: App to SPL Flow, SPL Data States (For MVP1)
...
No parameters
Request body
application/JSON
Example Value
Code Block |
---|
{
"organizationId" : 777
} |
No parameters
Responses
Code | Description | |||||
200 | Created application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Internal Server error |
...
Status | |||
---|---|---|---|
|
...
|
Updates a case (currently only supports updating of case’s extern id)/
...
Code | Description | |||||
200 | Created application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Internal Server error |
...
Status | ||||
---|---|---|---|---|
|
Delete case record
...
Example Value
Code Block |
---|
{ "case_idcaseId" : 12 } |
Responses
Code | Description |
200 | Case deleted |
400 | Invalid request |
403 | Lacks sufficient authority for operation |
500 | Internal Server error |
...
Code | Description | |||||
200 | Return points of concern associated with the case. application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Internal Server error |
...
Code | Description | |||||
200 | Returns the points of concern now associated with the case. application/json
| |||||
202 | Upload In Progress | |||||
400 | Invalid request | |||||
401 | Unauthorized Client | |||||
403 | Invalid Access Code | |||||
451 | Consent Not Granted | |||||
500 | Internal Server error |
...
Code Block |
---|
{ "caseId": 12, "point": { "longitude": 14.91328448, "latitude": 41.24060321, "time": "2020-05-30T18:25:43.511Z", "duration": 5 } } |
Responses
Code | Description | |||||
200 | Returns the created point of concern application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Internal Server error |
...
Status | |||
---|---|---|---|
|
...
|
Captures user consent to having their data published in the aggregated anonymized JSON file that is available to public.
...
Code | Description | |||||
---|---|---|---|---|---|---|
200 |
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Server Error |
...
Status | ||||
---|---|---|---|---|
|
Updates an existing point of concern
...
Code Block |
---|
{ "pointId" : 123, "longitude": 12.91328448, "latitude": 39.24060321, "time": "2020-05-21T18:25:43.511Z", "duration": 5 } |
Responses
Code | Description | |||||
200 | Point was updated application/json
| |||||
400 | Invalid request | |||||
403 | Lacks sufficient authority for operation | |||||
500 | Server Error |
...
Status | ||||
---|---|---|---|---|
|
Deletes the point of concern having the ID corresponding with the pointID
param.
...