1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-flask-swagger
6 VARIANTS= py27 py36 py37
7 SDESC[py36]= Extract swagger specs from your flask proj (PY 36)
8 SDESC[py37]= Extract swagger specs from your flask proj (PY 37)
9 SDESC[py27]= Extract swagger specs from your flask proj (PY 27)
10 HOMEPAGE= https://github.com/gangverk/flask-swagger
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/f/flask-swagger
15 DISTFILE[1]= flask-swagger-0.2.13.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY36 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py36]= PY27=OFF PY36=ON PY37=OFF
24 VOPTS[py37]= PY27=OFF PY36=OFF PY37=ON
25 VOPTS[py27]= PY27=ON PY36=OFF PY37=OFF
27 DISTNAME= flask-swagger-0.2.13
31 [PY36].BUILDRUN_DEPENDS_ON= python-Flask:single:py36
32 python-PyYAML:single:py36
33 [PY36].USES_ON= python:py36
35 [PY37].BUILDRUN_DEPENDS_ON= python-Flask:single:py37
36 python-PyYAML:single:py37
37 [PY37].USES_ON= python:py37
39 [PY27].BUILDRUN_DEPENDS_ON= python-Flask:single:py27
40 python-PyYAML:single:py27
41 [PY27].USES_ON= python:py27
43 [FILE:3685:descriptions/desc.single]
47 A Swagger 2.0 spec extractor for Flask
53 pip install flask-swagger
55 Flask-swagger provides a method (swagger) that inspects the Flask app
56 for endpoints that contain YAML docstrings with Swagger 2.0
58 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#op
64 class UserAPI(MethodView):
78 description: the group's name
90 description: email for user
93 description: name for user
95 description: address for user
109 description: list of groups
111 $ref: "#/definitions/Group"
114 description: User created
118 Flask-swagger supports docstrings in methods of MethodView classes and
119 regular Flask view functions.
121 Following YAML conventions, flask-swagger searches for ``---``,
122 everything preceding is provided as ``summary`` (first line) and
123 ``description`` (following lines) for the endpoint while everything
124 after is parsed as a swagger
126 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#op
130 In order to support inline definition of
132 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
136 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#pa
140 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#re
142 objects, flask-swagger veers a little off from the standard. We require
143 an ``id`` field for the inline Schema which is then used to correctly
146 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
150 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#de
155 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
157 objects can be defined in a definitions section within the docstrings (see
158 group object above) or within responses or parameters (see user object
159 above). We alo support schema objects nested within the properties of other
161 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
163 objects. An example is shown above with the address property of User.
167 42420efbed1aad86f7ca6bb869df550e09591e1d540ebd3040c197906c0f0be6 8007 flask-swagger-0.2.13.tar.gz