1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-flask-swagger
7 SDESC[py37]= Extract swagger specs from your flask proj (PY 37)
8 SDESC[py38]= Extract swagger specs from your flask proj (PY 38)
9 HOMEPAGE= https://github.com/gangverk/flask-swagger
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/f/flask-swagger
14 DISTFILE[1]= flask-swagger-0.2.14.tar.gz:main
19 OPTIONS_AVAILABLE= PY38 PY37
20 OPTIONS_STANDARD= none
21 VOPTS[py37]= PY38=OFF PY37=ON
22 VOPTS[py38]= PY38=ON PY37=OFF
24 DISTNAME= flask-swagger-0.2.14
28 [PY37].BUILDRUN_DEPENDS_ON= python-Flask:single:py37
29 python-PyYAML:single:py37
30 [PY37].USES_ON= python:py37
32 [PY38].BUILDRUN_DEPENDS_ON= python-Flask:single:py38
33 python-PyYAML:single:py38
34 [PY38].USES_ON= python:py38
36 [FILE:3685:descriptions/desc.single]
40 A Swagger 2.0 spec extractor for Flask
46 pip install flask-swagger
48 Flask-swagger provides a method (swagger) that inspects the Flask app
49 for endpoints that contain YAML docstrings with Swagger 2.0
51 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#op
57 class UserAPI(MethodView):
71 description: the group's name
83 description: email for user
86 description: name for user
88 description: address for user
102 description: list of groups
104 $ref: "#/definitions/Group"
107 description: User created
111 Flask-swagger supports docstrings in methods of MethodView classes and
112 regular Flask view functions.
114 Following YAML conventions, flask-swagger searches for ``---``,
115 everything preceding is provided as ``summary`` (first line) and
116 ``description`` (following lines) for the endpoint while everything
117 after is parsed as a swagger
119 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#op
123 In order to support inline definition of
125 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
129 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#pa
133 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#re
135 objects, flask-swagger veers a little off from the standard. We require
136 an ``id`` field for the inline Schema which is then used to correctly
139 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
143 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#de
148 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
150 objects can be defined in a definitions section within the docstrings (see
151 group object above) or within responses or parameters (see user object
152 above). We alo support schema objects nested within the properties of other
154 <https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#sc
156 objects. An example is shown above with the address property of User.
160 b4085f5bc36df4c20b6548cd1413adc9cf35719b0f0695367cd542065145294d 8645 flask-swagger-0.2.14.tar.gz