I can call all my backend service methods with thi...
# talk-oathkeeper
n
I can call all my backend service methods with this config. But when I try to go to browser to view its swagger docs, it fails to load the openapi.json file. http://oathkeeper/my-backend/apiEndpoint1 (works) http://oathkeeper/my-backend/swagger (does not work) The error I get is: Browser fails to load openapi.json file on http://oathkeeper/openapi.json , which makes sense since its located at http://oathkeeper/my-backend/openapi.json . So how can I set up my configuration to make it so when the backend service tries to load the json file it fetches from http://oathkeeper/my-backend/openapi.json
Copy code
{
  "upstream": {
    "url": "<http://my-backend-service>",
    "preserve_host": true,
    "strip_path": "/my-backend"
  },
  "match": {
    "url": "<http://oathkeeper/><my-backend>/<.*>",
    "methods": [
      "GET",
      "POST",
      "PUT",
      "DELETE",
      "OPTIONS"
    ]
  }
}
e
Would a separate match statement above/before the one you posted that has:
Copy code
"url": "<http://oathkeeper/><my-backend>/openapi.json"
And in the upstream, just remove the
"strip_path"
work?