Authorize button missing in Google App Engine swagger.json

…衆ロ難τιáo~ 提交于 2021-01-29 21:29:00

问题


I have a flask restplus api with swagger documentation generated.

When I run the application locally, I am able to see the Authorize button in the swagger UI

Localhost has Authorize button

But when I deploy the same application on Google App Engine, the authorize button goes missing.

No Authorize button in the Google App Engine deployment.

I am unsure why the authorize button is missing in the Google App Engine deployment.


回答1:


I was using different versions of flask-restpplus on localhost and Google app engine. After bumping up the app engine deployment to use the latest version of flask restplus, I am able to see the authorize button



来源:https://stackoverflow.com/questions/54033390/authorize-button-missing-in-google-app-engine-swagger-json

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!