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

Add Swagger API documentation #395

Merged
merged 2 commits into from
Nov 22, 2020
Merged

Add Swagger API documentation #395

merged 2 commits into from
Nov 22, 2020

Conversation

alexwaibel
Copy link
Collaborator

This PR adds automatically generated swagger api docs at the new /api-docs endpoint. We can write the documentation in the jsdoc comments for each route so the documentation lives close to the actual code and is unlikely to be forgotten when updating the API. These jsdoc annotations are used to generate an interactive API doc with support for things like example request and responses, and an interactive REST client to try out requests.

I haven't gotten everything fully documented yet, but it's a start. Some of the endpoints could use some example requests and responses. I've marked all non-v3 endpoints as deprecated in an attempt to make it more clear that users should use the new v3 endpoints.

image
image

Somewhat related to #367 and #312

@alexwaibel alexwaibel added help wanted Signifies that the maintainers of the project would like assistance with this problem. in development Signifies that the issue is actively being worked on. labels Nov 22, 2020
Copy link
Owner

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

Great work, thank you! 🎉🚀

@alexwaibel alexwaibel merged commit 1f31ac8 into dev Nov 22, 2020
@alexwaibel alexwaibel deleted the aw-swagger branch November 22, 2020 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Signifies that the maintainers of the project would like assistance with this problem. in development Signifies that the issue is actively being worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants