flask-restful-swagger
flask-restful-swagger copied to clipboard
A Swagger spec extractor for flask-restful
When I stub out a new project according to the readme and head to http://localhost:5000/api/spec.html#!/spec, I don't see anything where the dropdown endpoints would show. I'm trying to debug this....
I have upgraded from 0.12 to 0.15 and am seeing some breakage. I have multiple endpoints with similar paths as such: ``` #fanfeed endpoints api.add_resource(feeditems.GetFanFeed, '/api/feeditems///') api.add_resource(feeditems.PostFeedItem, '/api/feeditems') api.add_resource(feeditems.UpdateFeedItem, '/api/feeditems',...
If I define a prefix in my restful initialization `restful.Api(app, prefix='/api')` the prefix doesn't pass along to swagger. Consider something like this where I want everything that is Rest related...
Hi. I noticed it's possible in Swagger to show the schema of the response. For example: http://getcloudify.org/guide/3.1/rest-api/index.html#!/spec.json/listNodeInstances How would I define this? If I do the model.**name** for response class...
I am using flask-restful-swagger in my restful app, because my requirements have many parameters for different resources, so i want to put all of the params into request body of...
Hi. In a project I want to customize the default swagger web interface. What's the easiest way to do it? I haven't found any documentation. I could just edit the...
I have a Flask app using this Swagger integration behind an internal load balancer in EC2, which I'm accessing in my local browser through SSH port forwarding. Effectively, this means...
I've implemented the following model structure: ``` @swagger.model class RequestFilter: resource_fields = { 'name': fields.String, 'operator': fields.String, 'value': fields.String, } swagger_metadata = { 'operator': { 'enum': ['CNF', 'DNF'] } }...
Add possibility to add an optional full swagger header by referencing a info dict to the docs method. See this commit to deal with this issue: https://github.com/lounagen/flask-restful-swagger/commit/e72ab6616a47dc1b815e55afafb0a2b14d72c582 And here is...
It's useful to consolidate GET requests for single or multiple objects as follows: ``` class Todo(Resource): @swagger.operation() def get(self, todo_id=None): # return single or multiple todos depending if todo_id is...