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

Create new schema for API responses #7

Open
alexsmbaratti opened this issue Jul 11, 2021 · 0 comments
Open

Create new schema for API responses #7

alexsmbaratti opened this issue Jul 11, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@alexsmbaratti
Copy link
Owner

The current schema for API responses follows the following general pattern:

{
    "status": 200,
    "data": {}
}

The status code is fairly redundant and never used. I am open to suggestions to what may be more effective schema. That may be as simple as just returning the data, but I would like it to look somewhat sophisticated if possible. In addition, I am open to suggestions for error schemas.

If you have suggestions, please reply with a comment below with your suggestions.

@alexsmbaratti alexsmbaratti added the help wanted Extra attention is needed label Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant