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.
2 parents 74f4c5f + b39cd89 commit 1791d09Copy full SHA for 1791d09
README.md
@@ -18,15 +18,15 @@ Start using Flask-Autodoc by importing it and initializing it:
18
19
from flask import Flask
20
from flask.ext.autodoc import Autodoc
21
-
+
22
app = Flask(__name__)
23
auto = Autodoc(app)
24
25
by default, Flask-Autodoc will only document the routes you explicitly tell him to with the _doc_ decorator,
26
like this:
27
28
@app.route('/user/<int:id>')
29
- @auto.doc
+ @auto.doc()
30
def show_user(id):
31
"""This returns a user with a given id."""
32
return user_from_database(id)
0 commit comments