1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-flask-swagger
7 SDESC[py38]= Extract swagger specs from flask project (PY38)
8 SDESC[py39]= Extract swagger specs from flask project (PY39)
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 PY39
20 OPTIONS_STANDARD= none
21 VOPTS[py38]= PY38=ON PY39=OFF
22 VOPTS[py39]= PY38=OFF PY39=ON
24 DISTNAME= flask-swagger-0.2.14
28 [PY38].BUILDRUN_DEPENDS_ON= python-Flask:single:py38
29 python-PyYAML:single:py38
30 [PY38].USES_ON= python:py38,sutools
32 [PY39].BUILDRUN_DEPENDS_ON= python-Flask:single:py39
33 python-PyYAML:single:py39
34 [PY39].USES_ON= python:py39,sutools
36 [FILE:2765: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
55 class UserAPI(MethodView):
69 description: the group's name
81 description: email for user
84 description: name for user
86 description: address for user
100 description: list of groups
102 $ref: "#/definitions/Group"
105 description: User created
109 Flask-swagger supports docstrings in methods of MethodView classes and
110 regular Flask view functions.
112 Following YAML conventions, flask-swagger searches for ``---``,
113 everything preceding is provided as summary (first line) and
114 description (following lines) for the endpoint while everything
115 after is parsed as a swagger
119 In order to support inline definition of
125 objects, flask-swagger veers a little off from the standard. We require
126 an id field for the inline Schema which is then used to correctly
134 objects can be defined in a definitions section within the docstrings (see
135 group object above) or within responses or parameters (see user object
136 above). We alo support schema objects nested within the properties of other
140 b4085f5bc36df4c20b6548cd1413adc9cf35719b0f0695367cd542065145294d 8645 flask-swagger-0.2.14.tar.gz