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

III-4788 Change error responses to return correct API problems #210

Merged
merged 10 commits into from
Jun 23, 2022

Conversation

bertramakers
Copy link
Contributor

Changed

  • Made sure non-existing routes return a 404 Not Found with API problem type https://api.publiq.be/probs/url/not-found
  • Made sure a 405 Method Not Allowed uses API problem type https://api.publiq.be/probs/method/not-allowed
  • Made sure an unknown query parameter (like ?foo=bar) returns a 404 Not Found instead of a 400
  • Made sure an unknown query parameter value (like ?addressCountry=bar) returns a 404 Not Found instead of a 400
  • Using an invalid URL as website parameter value now returns 0 results instead of a 400

Ticket: https://jira.uitdatabank.be/browse/III-4788
(See ticket for more examples)

Copy link
Contributor

@LucWollants LucWollants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean code and easy to review because of the granular commits.

@bertramakers bertramakers merged commit 7bd25c9 into main Jun 23, 2022
@bertramakers bertramakers deleted the III-4788-api-problem-types branch June 23, 2022 13:23
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.

None yet

2 participants