Skip to content

kevwo/flask-restful-swagger

 
 

Repository files navigation

flask-restful-swagger

This fork adds the following functionality. (Forked from https://github.com/rantav/flask-restful-swagger)

1.) Ability to group sections of swagger APIs.

@swagger.resource(
    hierarchy_id='VendingMachines',
    hierarchy_description='Operations on VendingMachines objects'
)
class VendingMachine(Resource):

2.) Ability to specify a custom description for a swagger URL.

api.add_resource(VendingMachine, "/Region/<string:region_id>"
                                    "/Brand/<string:brand_id>"
                                    "/Machine/<string:machine_id>", display_path="/**/machine")

3.) Removed some of the unused icons from the swagger page.

Install:

pip install git+git://github.com/kevwo/flask-restful-swagger.git#egg=flask-restful-swagger

(This installs flask-restful as well)

About

A Swagger spec extractor for flask-restful

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.8%
  • CSS 8.3%
  • Python 2.1%
  • Other 0.8%