apigee-127 / swagger-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
702 stars 371 forks source link

Swagger ui with a reverse proxy - apiDocsPrefix not in use #620

Open ShellyAbadi opened 4 years ago

ShellyAbadi commented 4 years ago

Hey, I'm using swagger tools with reverse proxy. when I click on "try it out", Swagger UI is calling to the wrong path. In the UI middleware doc (https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md#swaggeruioptions), it looks like the solution is to use the apiDocsPrefix property, but this property not in use in the code.

How can I solve my problem? Thanks