Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: standardize API endpoints #981

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

lauramosher
Copy link
Contributor

  • Wrap return JSON in an "envelope" to provide the ability to send down viewable data versus metadata (such as paging information).
  • Moves spec json_response to a support/api_helpers file to allow for a single source for parsing response body into json_response (data) and json_meta (meta).

Eventually we will want to add API headers for versioning so we can introduce changes with backwards compatibility.

- Wrap return JSON in an "envelope" to provide the ability to send down
  viewable data versus metadata (such as paging information).
- Moves spec `json_response` to a support/api_helpers file to allow for
  a single source for parsing response body into json_response (data)
  and json_meta (meta).

Eventually we will want to add API headers for versioning so we can
introduce changes with backwards compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants