We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I do:
r.Get("/swagger/*", swagger.Handler(swagger.URL("http://localhost/swagger/doc.json")))
returns the swagger json at http://localhost/swagger/doc.json.
http://localhost/swagger/doc.json
I would like to make the json available at http://localhost/swagger/swagger.json. If I do:
http://localhost/swagger/swagger.json
r.Get("/swagger/*", swagger.Handler(swagger.URL("http://localhost/swagger/swagger.json")))
I get a 404.
Is there a way to do that currently? If not, would you accept a PR to enable it?
The text was updated successfully, but these errors were encountered:
Hi @jeffreydwalter, We don't have this kind of customization available. If this is really important to you please feel free and contribute with a PR.
Thanks.
Sorry, something went wrong.
Using swag init produces swagger.json, why would that not be the default? Am I missing something here?
swag init
The HTTP handler uses the documentation that is embedded in the docs.go file.
No branches or pull requests
If I do:
returns the swagger json at
http://localhost/swagger/doc.json
.I would like to make the json available at
http://localhost/swagger/swagger.json
.If I do:
I get a 404.
Is there a way to do that currently? If not, would you accept a PR to enable it?
The text was updated successfully, but these errors were encountered: