Relative Content

Tag Archive for javascriptnode.jsexpressswaggerswagger-ui

swagger API documentation as json file is not accessible in express app, just swagger UI renders

I’m having trouble with serving and downloading the Swagger JSON file for my API documentation. When I try to access the Swagger JSON file, it just renders the Swagger UI instead. I need the JSON file to import the API documentation into Postman.

These both the URLs just rendering swagger UI.
http://127.0.0.1:5001/nf3tix/us-central1/cloud/api-docs/swagger.json and
http://127.0.0.1:5001/nf3tix/us-central1/cloud/api-docs/

Not sure where is it breaking.

Here is my swagger-config.js