Skip to content

Commit e7fa70b

Browse files
authored
Merge branch 'master' into fix-integer-index
2 parents 418821d + e186dc4 commit e7fa70b

File tree

7 files changed

+74
-8
lines changed

7 files changed

+74
-8
lines changed

doc/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
# General information about the project.
5454
project = u"Flask-RESTX"
55-
copyright = u"2014, Axel Haustant"
55+
copyright = u"2020, python-restx Authors"
5656

5757
# The version info for the project you're documenting, acts as replacement for
5858
# |version| and |release|, also used in various other places throughout the
@@ -263,7 +263,7 @@
263263
"index",
264264
"Flask-RESTX.tex",
265265
u"Flask-RESTX Documentation",
266-
u"Axel Haustant",
266+
u"python-restx Authors",
267267
"manual",
268268
),
269269
]
@@ -294,7 +294,7 @@
294294
# One entry per manual page. List of tuples
295295
# (source start file, name, description, authors, manual section).
296296
man_pages = [
297-
("index", "flask-restx", u"Flask-RESTX Documentation", [u"Axel Haustant"], 1)
297+
("index", "flask-restx", u"Flask-RESTX Documentation", [u"python-restx Authors"], 1)
298298
]
299299

300300
# If true, show URL addresses after external links.
@@ -311,7 +311,7 @@
311311
"index",
312312
"Flask-RESTX",
313313
u"Flask-RESTX Documentation",
314-
u"Axel Haustant",
314+
u"python-restx Authors",
315315
"Flask-RESTX",
316316
"One line description of project.",
317317
"Miscellaneous",

doc/configuration.rst

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Configuration
2+
=============
3+
4+
Flask-RESTX provides the following `Flask configuration values <https://flask.palletsprojects.com/en/1.1.x/config/#configuration-handling>`_:
5+
6+
Note: Values with no additional description should be covered in more detail
7+
elsewhere in the documentation. If not, please open an issue on GitHub.
8+
9+
.. py:data:: RESTX_JSON
10+
11+
Provide global configuration options for JSON serialisation as a :class:`dict`
12+
of :func:`json.dumps` keyword arguments.
13+
14+
.. py:data:: RESTX_VALIDATE
15+
16+
Whether to enforce payload validation by default when using the
17+
``@api.expect()`` decorator. See the `@api.expect()
18+
<swagger.html#the-api-expect-decorator>`__ documentation for details.
19+
This setting defaults to ``False``.
20+
21+
.. py:data:: RESTX_MASK_HEADER
22+
23+
Choose the name of the *Header* that will contain the masks to apply to your
24+
answer. See the `Fields masks <mask.html>`__ documentation for details.
25+
This setting defaults to ``X-Fields``.
26+
27+
.. py:data:: RESTX_MASK_SWAGGER
28+
29+
Whether to enable the mask documentation in your swagger or not. See the
30+
`mask usage <mask.html#usage>`__ documentation for details.
31+
This setting defaults to ``True``.
32+
33+
.. py:data:: RESTX_INCLUDE_ALL_MODELS
34+
35+
This option allows you to include all defined models in the generated Swagger
36+
documentation, even if they are not explicitly used in either ``expect`` nor
37+
``marshal_with`` decorators.
38+
This setting defaults to ``False``.
39+
40+
.. py:data:: BUNDLE_ERRORS
41+
42+
Bundle all the validation errors instead of returning only the first one
43+
encountered. See the `Error Handling <parsing.html#error-handling>`__ section
44+
of the documentation for details.
45+
This setting defaults to ``False``.
46+
47+
.. py:data:: ERROR_404_HELP
48+
49+
.. py:data:: HTTP_BASIC_AUTH_REALM
50+
51+
.. py:data:: SWAGGER_VALIDATOR_URL
52+
53+
.. py:data:: SWAGGER_UI_DOC_EXPANSION
54+
55+
.. py:data:: SWAGGER_UI_OPERATION_ID
56+
57+
.. py:data:: SWAGGER_UI_REQUEST_DURATION
58+
59+
.. py:data:: SWAGGER_UI_OAUTH_APP_NAME
60+
61+
.. py:data:: SWAGGER_UI_OAUTH_CLIENT_ID
62+
63+
.. py:data:: SWAGGER_UI_OAUTH_REALM
64+
65+
.. py:data:: SWAGGER_SUPPORTED_SUBMIT_METHODS

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Flask-RESTX with Flask.
5555
postman
5656
scaling
5757
example
58+
configuration
5859

5960

6061
API Reference

doc/marshalling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ You can define models using `JSON Schema <http://json-schema.org/examples.html>`
521521
'type': 'object'
522522
})
523523
524-
person = address = api.schema_model('Person', {
524+
person = api.schema_model('Person', {
525525
'required': ['address'],
526526
'properties': {
527527
'name': {

examples/complex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from flask import Flask
2-
from werkzeug.contrib.fixers import ProxyFix
2+
from werkzeug.middleware.proxy_fix import ProxyFix
33

44
from zoo import api
55

examples/todo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import Flask
22
from flask_restx import Api, Resource, fields
3-
from werkzeug.contrib.fixers import ProxyFix
3+
from werkzeug.middleware.proxy_fix import ProxyFix
44

55
app = Flask(__name__)
66
app.wsgi_app = ProxyFix(app.wsgi_app)

examples/todomvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import Flask
22
from flask_restx import Api, Resource, fields
3-
from werkzeug.contrib.fixers import ProxyFix
3+
from werkzeug.middleware.proxy_fix import ProxyFix
44

55
app = Flask(__name__)
66
app.wsgi_app = ProxyFix(app.wsgi_app)

0 commit comments

Comments
 (0)