Open
Description
Describe the bug
All API endpoints should be RESTful and return standard HTTP codes. While doing #299, noticed that some endpoints are non-compliant with standards and/or don't return the standard payload/status code.
A successfulPUT
, POST
or GET
request should return the following payload with the relevant object(s) nested in the data object:
{
"data": {}
"message": "{Insert API Message}",
}
A DELETE
request should return:
{
"message": "{Object} deleted"
}
Todo:
- Audit API Response Payloads
- Audit API Response Status Codes
- Update API Docs
- Ensure Mobile App is updated and handles any breaking changes
Metadata
Assignees
Labels
No labels