flask-restful-swagger icon indicating copy to clipboard operation
flask-restful-swagger copied to clipboard

Update Swagger UI static files

Open xumx opened this issue 9 years ago • 6 comments

https://github.com/swagger-api/swagger-ui

Swagger UI needs some update. Much has changed over the last 2 years.

@niall-byrne

xumx avatar Jan 05 '16 04:01 xumx

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.

niall-byrne avatar Jan 05 '16 05:01 niall-byrne

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 avatar Jan 05 '16 05:01 xumx

@xumx, Please keep us posted on what you find with your workaround.

niall-byrne avatar Jan 05 '16 05:01 niall-byrne

@xumx @niall-byrne Any feedback on upgrading UI and Changing API to swagger 2.0 ?

kavink avatar Feb 17 '16 07:02 kavink

@kavink thank's for your interest, it's going to be pretty soon now.

sobolevn avatar Mar 22 '16 13:03 sobolevn

@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.

vermavikrant avatar Feb 02 '17 15:02 vermavikrant