flask-restful-swagger
flask-restful-swagger copied to clipboard
Update Swagger UI static files
https://github.com/swagger-api/swagger-ui
Swagger UI needs some update. Much has changed over the last 2 years.
@niall-byrne
Thanks @xumx,
@rantav, also stressed this point. I'm still getting acquainted with what's in the backlog, but we've got to make this a priority. At this point I'm very tempted to try and resolve some of the outstanding issues, before migrating the UI- but there may be multiple roads to get there.
As a workaround, I've simply dumped everything from the swagger-ui dist folder into Flask /static folder. Everything seems to work fine.
app = Flask(__name__, static_url_path='')
@app.route('/docs')
def docs():
return app.send_static_file('index.html')
I'm new to python and Flask, so I'm not sure what it takes to migrate. The old glue code might no longer be necessary.
@xumx, Please keep us posted on what you find with your workaround.
@xumx @niall-byrne Any feedback on upgrading UI and Changing API to swagger 2.0 ?
@kavink thank's for your interest, it's going to be pretty soon now.
@xumx @niall-byrne Is there any update on updating the swagger static files to latest version? The proposed solution from @xumx doesn't work perfectly for me. Eg: its missing the heading, section names/tags.