ktor-swagger
ktor-swagger copied to clipboard
basePath/Server setup
Is there a way to specify the basePath or server. Once you host this behind an api gateway, api calls from swagger lacking the base path. Can display the swagger gui with no issues, by setting forwardRoot to false
-
apigateway route is:
http://{apigatewayhost}/xxxforwards tohttp://{swaggerhost} -
end point is
http://{swaggerhost}/users -
you would want swagger to call:
http://{apigatewayhost}/xxx/userswhich would forward tohttp://{swaggerhost}/users -
but it calls
http://{apigatewayhost}/users
so it fails. I believe, basePath setup can fix this
thanks in advance...
I don't think I ever put in this capability. Please open a PR, with a test, if this is something you need.