hobbeswalsh / flask-sillywalk Goto Github PK
View Code? Open in Web Editor NEWA Flask extension that implements Swagger support (http://swagger.wordnik.com/)
A Flask extension that implements Swagger support (http://swagger.wordnik.com/)
Hi, thanks for this project.
In Swagger we have responseClass
which is the type of the value returned by the HTTP request. Typically one of the models.
q1: How in flask-sillywalk one might add the responseClass
to @register
?
q2: How one might return a class of the responseClass
from a flask handler? E.g. in your example.py
how would I return SomeCrazyClass
as a value from a handler?
BTW, sorry for opening an issue, if there's a better place to ask questions let me know...
See swagger-api/swagger-ui#327
For example, we want to be able to serve PNG data.
I prepared the project to support the TravisCI hook now only this steps are necessary to activate it.
This is not a bug - it's a feature request and a discussion.
I need type
s in models badly.
Hi, I was thinking I might take a stab at adding types to models (I need this) so I was curious what did you have in mind.
Maybe it's just my python rust but I tried adding parameters to @registerModel
with no success. The implementation of the decorator accepts c, _args and *_args and I couldn't figure out a way to add parameters to it...
Did you have anything else in mind?
I cloned this repository in my machine and ran example.py. The responses from the urls are as follows;
None of these responses work while using as a server resource for documenting the API in swagger ui (latest one in github). The error that I get while using any one of them is;
Can't read from server. It may not have the appropriate access-control-origin settings.
How can i see the api documented in swagger ui?
Thanks
This is a great package, it just needs to be added to pypi to make it easier to distribute.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.