oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
94 stars 53 forks source link

Set hosting base path #77

Open jonathan-dev opened 1 year ago

jonathan-dev commented 1 year ago

I have hosted my rest api behind a base path using apisix. Its working all fine. The only problem is that i can't find where I can set a base path for the swagger UI so that it is loading the api description from the right place and the endpoints of the GUI are displayed correctly (with the base path so they actually work.

Update I found that I i can set the .addServer in the builder to include the base path. but I still have not found where I can set the default search field value of the swagger UI to include the base path.

Thanks in advance.