roda
roda copied to clipboard
REST API docs (Swagger) and GET COMMAND do not work when in a context path different from /
I've recently tried to deploy a Roda instance in a different context path rather than "/", and the /api-docs (Swagger) page does not work. The REST API all still refer to "/" and not to the new context path. Same with the curl commands from the "Get Command" buttons.
Originally posted by @sebastiandaberdaku in https://github.com/keeps/roda/issues/679#issuecomment-658580075
- [x] Get command generator needs to cope with different context paths
- [x] Swagger UI needs to be have a dynamic REST API context path