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

fix(docs/swagger): various fixes and improved consistency #1139

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

wass3r
Copy link
Collaborator

@wass3r wass3r commented Jun 7, 2024

well, well.. started with fixing some errors i noticed in the swagger annotations and quickly turned into a rabbit hole of fixing and trying to improve various things.

however, here are some highlights:

  • correct flat out errors in swagger annotations
  • ensure all response codes are covered
  • simplify language (also meant removing some unnecessary language)
  • improve consistency in language

Note: only on the admin endpoints did i correct some 404 returns that should have been 400, otherwise there are no actual code changes.

there is more to be done. i noticed some inconsistencies in some places where we return 404 when there was an error retrieving objects from the database when in most cases we return internal server error (500). might want to consider determining what kind of error and returning appropriate response.

well, well.. started with fixing some errors i noticed in the swagger
annotations and quickly turned into a rabbit hole of fixing and trying
to improve various things.

however, here are some highlights:
- correct flat out errors in swagger annotations
- ensure all response codes are covered
- simplify language (also meant removing some unnecessary language)
- improve consistency in language
@wass3r wass3r requested a review from a team as a code owner June 7, 2024 18:16
Copy link
Contributor

@ecrupper ecrupper left a comment

Choose a reason for hiding this comment

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

Nice thanks for doing this

@wass3rw3rk wass3rw3rk merged commit a083311 into main Jun 7, 2024
11 of 13 checks passed
@wass3rw3rk wass3rw3rk deleted the fix/swagger branch June 7, 2024 18:29
@wass3rw3rk wass3rw3rk mentioned this pull request Jun 17, 2024
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.

4 participants