-
Notifications
You must be signed in to change notification settings - Fork 37
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
Customize swagger URL? #11
Comments
Hi, right now, I have not the time to make this configurable. However you could generate the template and configure the settings directlty: |
That's great, thank you! |
But then would that support multiple swagger ui's hitting multiple documentation endpoints? |
It's for the default swagger layout (see https://github.com/kendrikat/grape-swagger-ui/blob/master/app/controllers/swagger_controller.rb#L3). |
Is there a way to have multiple sets of UIs based on multiple JSON doc endpoints? |
If you have different doc endpoints setup, you could copy the template for each one and add a separate route for it. (Not very fancy, but easiest way I can think of right now.) |
The view hardcodes
/api/v1/swagger_doc
as the default Swagger URL.This doesn't play well with the
:accept_version_header
Grape option, and there doesn't seem to be a way to set the right URL.Is there a way to support the
:accept_version_header
option?The text was updated successfully, but these errors were encountered: