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

[Chore] Improve API response structure #28

Open
longnd opened this issue Jan 9, 2023 · 0 comments
Open

[Chore] Improve API response structure #28

longnd opened this issue Jan 9, 2023 · 0 comments
Assignees

Comments

@longnd
Copy link

longnd commented Jan 9, 2023

Issue

The API responses do not follow any JSON-compliant standard such as https://jsonapi.org/. The endpoints do not return adequate error responses consistently. For instance,

  • The API for registering an account will return validation errors

Screenshot 2023-01-09 at 18 34 08

  • API/v1/SearchController will result in a server error when the params is invalid, e.g. empty value for the search[file] param (no file is uploaded).
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

No branches or pull requests

2 participants