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

Expose the swagger generation route(s) in the swagger.json #2570

Closed
orty opened this issue Dec 8, 2022 · 3 comments
Closed

Expose the swagger generation route(s) in the swagger.json #2570

orty opened this issue Dec 8, 2022 · 3 comments
Labels
needs investigation stale Stale issues or pull requests

Comments

@orty
Copy link

orty commented Dec 8, 2022

I am trying to expose the routes which give back the swagger.json documents for an ASP.Net 6 web api, in the generated swagger.json itself. I just need to see the swagger generation route used to generate the JSON document, alongside the other endpoints of my API.

I tried both app.UseSwagger and app.MapSwagger but the route template (containing the {documentName} token) never make its way to the Operations parsed by Swashbuckle.

How can I achieve this goal ?

Thx !

@Havunen
Copy link

Havunen commented Feb 24, 2024

Just use the Swagger middleware add the UI copy paste the route urls and remove UI middleware

Edit: ah in the swagger.json itself, oh ok. I misunderstood the question. Need to investigate

Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

@github-actions github-actions bot added the stale Stale issues or pull requests label Jun 14, 2024
Copy link
Contributor

github-actions bot commented Jul 1, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation stale Stale issues or pull requests
Projects
None yet
Development

No branches or pull requests

3 participants