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
Default path for Swagger JSON is /swagger/v1/swagger.json. This path is hard-coded in SwaggerService class. This works only if my downstream API has version v1, or I must manually set correct path in ocelot.config.
To Reproduce
My downstream API has version 1.0 and I have this configuration:
This does not work, because the URL for downstream Swagger is built with path /swagger/v1/swagger.json, but the correct path is /swagger/1.0/swagger.json.
Of course, I can manually configure the path, so this works:
Describe the bug
Default path for Swagger JSON is
/swagger/v1/swagger.json
. This path is hard-coded inSwaggerService
class. This works only if my downstream API has versionv1
, or I must manually set correct path inocelot.config
.To Reproduce
My downstream API has version
1.0
and I have this configuration:This does not work, because the URL for downstream Swagger is built with path
/swagger/v1/swagger.json
, but the correct path is/swagger/1.0/swagger.json
.Of course, I can manually configure the path, so this works:
Expected behavior
It would be nice, if the default path respects configured API version and use
/swagger/v1/swagger.json
only as the last option.The text was updated successfully, but these errors were encountered: