ring-swagger

ring-swagger & compojure-api
Andreasp1994 2018-06-15T19:07:14.000141Z

Hey I am get the following error when trying to add swagger to the api Can't read swagger JSON from <http://192.168.66.128/api/swagger.json>. Any ideas why swagger.json is not found or how I can debug this?

Andreasp1994 2018-06-15T20:07:53.000420Z

Okay I realised that since I have got an nginx reverse proxy which serves /api requests for the api then the url for the swagger.json becomes <http://192.168.66.128/api/api/swagger.json>. Now my question is how can I force the swagger to use the spec in /api/swagger.json but without creating another api folder?

Andreasp1994 2018-06-15T20:15:37.000065Z

Nvm realised there is a basePath param :))