Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Export the swagger definition #590

Closed
jheld opened this issue Nov 30, 2016 · 1 comment
Closed

Export the swagger definition #590

jheld opened this issue Nov 30, 2016 · 1 comment

Comments

@jheld
Copy link

jheld commented Nov 30, 2016

Is there a way to export the swagger definition?
For instance, if the developer wanted to use a tool like Postman, and wanted the docs in a good format to write tests & calls, is there a way to get the file that Postman could use: https://www.getpostman.com/docs/importing_swagger

I'm also not sure if the swagger usage there would be YAML based or not.

@marcgibbons
Copy link
Owner

@jheld Yes, you can view the spec by passing the ?format=openapi query parameter to your schema view. This will render the OpenAPI/Swagger specification instead of the UI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants