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

Sinatra support and documentation. #117

Open
jmolina4 opened this issue Jul 5, 2018 · 2 comments
Open

Sinatra support and documentation. #117

jmolina4 opened this issue Jul 5, 2018 · 2 comments

Comments

@jmolina4
Copy link

jmolina4 commented Jul 5, 2018

PLEASE READ THIS BEFORE FILING AN ISSUE:

https://github.com/fotinakis/swagger-blocks/#filing-issues

Hi,

In the Readme you say that you support any Ruby framework but there's only documentation for Rails. Is there any documentation example with a Sinatra app?

Thanks,

@NickyWeber
Copy link

I am also interested in this!

@stefanosx
Copy link

For Sinatra, the configuration is exactly the same.
The only thing you need to do is just add the route, like:

  get 'api_docs' do
    json Swagger::Blocks.build_root_json(SWAGGERED_CLASSES)
  end

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