You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of my rest service path/to/my/service/url which works fine when I specify base path for swagger; But when I use ReDoc the rightmost panel shows the path as
POST http://null/path/to/my/service/url
the swagger.json representation has basePath specified, how can ReDoc read the element and fix the post URL.
I am using relative path for redoc spec-url.
The text was updated successfully, but these errors were encountered:
I have checked and confirm this is a bug. I will fix it for the next release.
Temporary as a workaround you can either specify full URL to your spec in ReDoc options or specify host in the swagger (see example in our demo spec)
I wasn't sure that I had enough there for you to explain the problem but it seems that was okay.
Thank you for adding the label and fixing it in the next release.
RomanHotsiy
changed the title
basePath is not read from swagger.json
host value is not automatically propagated if not specified in spec (relative path to spec case)
Sep 12, 2016
The definition of my rest service path/to/my/service/url which works fine when I specify base path for swagger; But when I use ReDoc the rightmost panel shows the path as
POST http://null/path/to/my/service/url
the swagger.json representation has basePath specified, how can ReDoc read the element and fix the post URL.
I am using relative path for redoc spec-url.
The text was updated successfully, but these errors were encountered: