noirbizarre / flask-restplus

Fully featured framework for fast, easy and documented API development with Flask
http://flask-restplus.readthedocs.org
Other
2.73k stars 506 forks source link

Scheme to replace swagger.json #798

Open somta opened 4 years ago

somta commented 4 years ago

I want to change the json address of swagger from http://127.0.0.1:8080/swagger.json to http://127.0.0.1:8080/v2/api-docs, whether it supports such operations or has related parameter configuration

yunus776 commented 3 years ago

Bu siteye ulaşılamıyor

127.0.0.1 ana makinesine şu anda ulaşılamıyor. ERR_CONNECTION_FAILED

cschroeer commented 2 years ago

Hi, I have a similiar issue. Following the documentation on https://flask-restplus.readthedocs.io/en/stable/swagger.html#customization I can adjust the URL of the Swagger UI path. Therefore, I also expected that the subpaths regarding Swagger UI also have been adjusted.

If I configure doc='/doc/', e. g. http://localhost:80/doc works, but I also expected that http://localhost:80/doc/swagger.json also should work. The swagger.json is still accessible via http://localhost:80/swagger.json .