...
| URL | /api/survey |
| Description | Place a survey into the database in order to be retrieved by the application in the future |
| Header | API_KEY, Authorization |
| Method | PUT |
| Url Param | survey_name |
| Request Body Data | Survey to placed in the database |
| Response | { "message": "Incorrect API key provided." } { "message": "Survey stored!" }, 200 If survey name not passed in, { "message"="Please pass in survey name to create a survey" }, 400 |
| Sample |
Upload APIs (
used for dashboard upload functionality, not for mobilethey are in the code, but neither mobile nor dashboard uses them)
| URL | /api/upload/ |
| Description | GET: Fetching all uploaded species reads PUT: Upload a species read |
| Header | API_KEY, Authorization |
| Content-type | raw |
| Method | PUT | GET |
| Url Param | -- |
| Request Body Data | GET --- PUT { "barcode_id":"XXXXX", ... |
| Response | PUT
{ ... ... 200: Success |
...
