SMILEY4 / ktor-swagger-ui

Kotlin Ktor plugin to generate OpenAPI and provide Swagger UI
Apache License 2.0
150 stars 25 forks source link

Allow change the path of api.json #95

Closed EzequielAlejandroLastra closed 4 months ago

EzequielAlejandroLastra commented 4 months ago

Currently the path of open api json is swaggerUrl + api.json.

It would be nice if there is an attribute to to set a custom path.

for example: swaggerUrl = "/swagger-ui" documentationPath = "/api/docs"

SMILEY4 commented 4 months ago

Hi, i added the option to manually setup the routing for swagger-ui and the api.json in version 2.9.0. See https://github.com/SMILEY4/ktor-swagger-ui/wiki/Manual-Route-Setup for more info.

Let me know if this solves your issue.

EzequielAlejandroLastra commented 4 months ago

Hi, Perfect, it is very useful!!!