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

Feature request: Add ability to download OpenAPI spec #3560

Closed
2 tasks done
Thomas-McKanna opened this issue Dec 25, 2023 · 4 comments · Fixed by #3571
Closed
2 tasks done

Feature request: Add ability to download OpenAPI spec #3560

Thomas-McKanna opened this issue Dec 25, 2023 · 4 comments · Fixed by #3571
Assignees
Labels

Comments

@Thomas-McKanna
Copy link
Contributor

Use case

The Swagger UI feature is nice, but it would be even better to be able to download the OpenAPI specification file so that if users would like to render the documentation in alternative formats, they are easily able to do so.

Solution/User Experience

This could be achieved by adding another endpoint when Swagger is enabled at /swagger.json which would download the spec file.

Alternative solutions

No response

Acknowledgment

@Thomas-McKanna Thomas-McKanna added feature-request feature request triage Pending triage from maintainers labels Dec 25, 2023
@leandrodamascena
Copy link
Contributor

Hi @Thomas-McKanna! Thanks for the feedback on this feature, we launched it weeks ago and this kind of feedback helps us understand what is still missing in this new utility.

To allow the customer download the OpenAPI definition we must use the url parameter instead of using spec parameter when configuring SwaggerUI, and today we generate the spec on-the-fly using the spec field.

It will be possible if we create a new endpoint for /swagger.json (for example) and add a flag to let the customer decide whether or not to enable this endpoint when enabling swagger.

I believe this is a great improvement on the OpenAPI feature. We will be very happy if you want to work on this and send a PR as a contribution.

Thanks

@leandrodamascena leandrodamascena added event_handlers and removed triage Pending triage from maintainers labels Dec 26, 2023
@leandrodamascena leandrodamascena self-assigned this Dec 26, 2023
@Thomas-McKanna
Copy link
Contributor Author

@leandrodamascena Sounds good. I will work on a PR.

@Thomas-McKanna
Copy link
Contributor Author

PR created: #3571

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

2 participants