We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88e5c5 commit 0dcbb11Copy full SHA for 0dcbb11
hello.py
@@ -2,15 +2,13 @@
2
app = Flask(__name__)
3
4
"""
5
-@api {get} /sample/{message} hello world sample request
6
-@apiName GetSample
7
-@apiParam (Url) {String} message the message to return
8
-@apiSuccess (Success_200) {String} data the hello world data
9
-@apiSuccess (Success_200) {String} output what the user entered in the url
+@api {get} /hello/{name} Prints "Hello {name}"
+@apiName HelloWorld
+@apiParam (Url) {String} name the name to print
+@apiSuccess (200) {String} message the hello {name} message
10
11
-@app.route("/sample/<message>")
12
-def hello(message):
+@app.route("/hello/<name>")
+def hello(name):
13
return jsonify(
14
- data='Hello World',
15
- output=message
+ message='Hello ' + name
16
)
0 commit comments