We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ed08e commit b39cd89Copy full SHA for b39cd89
README.md
@@ -16,15 +16,15 @@ Start using Flask-Autodoc by importing it and initializing it:
16
17
from flask import Flask
18
from flask.ext.autodoc import Autodoc
19
-
+
20
app = Flask(__name__)
21
auto = Autodoc(app)
22
23
by default, Flask-Autodoc will only document the routes you explicitly tell him to with the _doc_ decorator,
24
like this:
25
26
@app.route('/user/<int:id>')
27
- @auto.doc
+ @auto.doc()
28
def show_user(id):
29
"""This returns a user with a given id."""
30
return user_from_database(id)
0 commit comments