Skip to content

Audit API Endpoints #320

Open
Open
@tristanhcole

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions