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

Customize swagger URL? #11

Open
giorgian opened this issue Jan 24, 2017 · 6 comments
Open

Customize swagger URL? #11

giorgian opened this issue Jan 24, 2017 · 6 comments

Comments

@giorgian
Copy link

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?

@kendrikat
Copy link
Owner

kendrikat commented Jan 24, 2017

Hi, right now, I have not the time to make this configurable. However you could generate the template and configure the settings directlty: rails generate swagger:layout (erb, haml and slim are supported)
EDIT: from version 0.1.1

@giorgian
Copy link
Author

That's great, thank you!

@kevinelliott
Copy link

But then would that support multiple swagger ui's hitting multiple documentation endpoints?

@kendrikat
Copy link
Owner

@kevinelliott
Copy link

Is there a way to have multiple sets of UIs based on multiple JSON doc endpoints?

@kendrikat
Copy link
Owner

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.)

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

No branches or pull requests

3 participants