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

Path to documentation #30

Open
aleksandra-stolyar opened this issue Aug 31, 2018 · 2 comments
Open

Path to documentation #30

aleksandra-stolyar opened this issue Aug 31, 2018 · 2 comments

Comments

@aleksandra-stolyar
Copy link

Please help to figure out how to change path to documentation so that I won't need to place it under 'public/swagger_docs/v1/swagger.json'?
I'm used to use https://github.com/brennovich/ruby-swagger and with Rails update 'swagger_engine' is not working anymore (of course).
I could write task for copying .json file everytime it's generated, but that's not nice.

@wayne5540
Copy link

SwaggerUiEngine.configure do |config|
  config.swagger_url = {
    v1: '/doc/api/v1/swagger.json'
  }
end

Then you can place your swagger.json under /public/doc/api/v1/swagger.json

@JoeWoodward
Copy link

This only makes sense if you want your docs to be public knowledge. Would be useful if you could specify a file that was not available to the web.

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

No branches or pull requests

3 participants