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

Generate Swagger API declaration #631

Closed
Natim opened this issue May 23, 2016 · 4 comments
Closed

Generate Swagger API declaration #631

Natim opened this issue May 23, 2016 · 4 comments

Comments

@Natim
Copy link
Member

Natim commented May 23, 2016

We talked about it at Djangocong, it would be really good to add automatic functional tests and documentation.

Refs mozilla-services/cliquet#257

lavish205 pushed a commit to lavish205/kinto that referenced this issue Jun 20, 2016
…service

Moved ``utils.current_service(request)`` to reified request method (ref Kinto#631)
@almet
Copy link
Member

almet commented Sep 13, 2016

@Natim
Copy link
Member Author

Natim commented Sep 13, 2016

Yes it is 💃

@leplatrem
Copy link
Contributor

@leplatrem
Copy link
Contributor

Some notes/ideas:

Instead of generating the Swagger from the source code, which seems very hard based on the services definitions only. We could edit it by hand and then make sure it remains up-to-date with a plugin like pyramid-swagger

Editing it by hand can be tedious in our case since we have many properties that are repeated accross the API.

We can imagine to edit by hand several small pieces of yaml/json and have a way to assemble them towards a final big spec file. Also, depending on settings or what plugins are installed the list of endpoints may change... I wonder how that should come into play.

glasserc added a commit that referenced this issue Dec 22, 2016
Add OpenAPI/Swagger spec (fixes #631)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants