rest - Swagger UI has wrong base path -
i using grape-swagger gem , standalone installation of swaggerui. api documentation situated @ http://example.com/api/v1/docs/. swaggerui discovers resources, sends requests http://example.com/v1/foo (missing 'api/' url). why that?
for documentation if experiences same problem: there paramater grape-swagger method add_swagger_documentation
called base_path
. in case, had specify
base_path: '/api'
rest swagger-ui
No comments:
Post a Comment