-
Notifications
You must be signed in to change notification settings - Fork 472
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
Documenting API at namespace root #189
Comments
I don't think this is by design, would appreciate a spec + fix. |
I couldn't reproduce my problem in specs, so perhaps it's something specific to my app. I was able to workaround the issue by changing from:
to the routing equivalent:
With this change things are working correctly so I'll close out the issue. Thanks for the help. |
@Beans0063 & @dblock I had to dig for an hour for this... can we reopen this so it is surfaced as a bug and fixed? |
@tonycoco Is this any different from https://github.com/tim-vandecasteele/grape-swagger/issues/192? |
Nope, @dblock, I referenced that after I found that issue too |
APIs assigned to the root of a namespace seem to be missing from the generated swagger_doc. For example, the api accessible at
http://localhost:3000/v1/mailer_templates
is missing when I viewhttp://localhost:3000/swagger_doc/mailer_templates
:Adding a url to route seems to fix this:
The regex here seems to be excluding the root url. Is this by design, if so how can route of
'/'
be included in swagger_docs?Thanks
The text was updated successfully, but these errors were encountered: