sanic-org / sanic

Accelerate your web app development | Build fast. Run fast.
https://sanic.dev
MIT License
18.1k stars 1.55k forks source link

Swagger/OpenAPI Support #75

Closed channelcat closed 7 years ago

channelcat commented 8 years ago

It would be nice to have Swagger/OpenAPI support. I'm not sure what the most intuitive way to implement this is.

Some examples, for inspiration:

eseglem commented 8 years ago

From the looks of it Flask-swagger should basically just work for sanic. Not nearly the features of Connexion, but a good start. You could probably just import Flask-swagger and use it. Since its just parsing the actual python file, and doesn't do anything flask specific.

awiddersheim commented 7 years ago

Another place you might want to get inspiration from:

It can be somewhat opinionated about how to build things but has some nice features IMO.

brunoalano commented 7 years ago

See #380

seemethere commented 7 years ago

Closed by @channelcat's extension here: https://github.com/channelcat/sanic-openapi

brucechou1983 commented 7 years ago

Is there any swagger-first extension for Sanic?

ioggstream commented 4 years ago

I'm writing a PoC of Sanic+Connexion https://github.com/zalando/connexion/pull/1250/files