roda icon indicating copy to clipboard operation
roda copied to clipboard

REST API docs (Swagger) and GET COMMAND do not work when in a context path different from /

Open luis100 opened this issue 4 years ago • 1 comments

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

luis100 avatar Jul 15 '20 08:07 luis100

  • [x] Get command generator needs to cope with different context paths
  • [x] Swagger UI needs to be have a dynamic REST API context path

luis100 avatar Jul 15 '20 08:07 luis100