You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,8 +19,8 @@ Flask API is a drop-in replacement for Flask that provides an implementation of
19
19
20
20
Requirements:
21
21
22
-
* Python 2.7+ or 3.4+
23
-
* Flask 0.12.3+
22
+
* Python 3.6+
23
+
* Flask 1.1.+
24
24
25
25
Install using `pip`:
26
26
@@ -46,7 +46,7 @@ def example():
46
46
return {'hello': 'world'}
47
47
```
48
48
49
-
A renderer for the response data will be selected using content negotiation based on the client 'Accept' header. If you're making the API request from a regular client, this will default to a JSON response. If you're viewing the API in a browser, it'll default to the browsable API HTML.
49
+
A renderer for the response data will be selected using content negotiation based on the client 'Accept' header. If you're making the API request from a regular client, this will default to a JSON response. If you're viewing the API in a browser, it'll default to the browsable API HTML.
50
50
51
51
## Requests
52
52
@@ -133,8 +133,8 @@ You can now open a new tab and interact with the API from the command line:
133
133
134
134
```shell
135
135
$ curl -X GET http://127.0.0.1:5000/
136
-
[{"url": "http://127.0.0.1:5000/0/", "text": "do the shopping"},
137
-
{"url": "http://127.0.0.1:5000/1/", "text": "build the codez"},
136
+
[{"url": "http://127.0.0.1:5000/0/", "text": "do the shopping"},
137
+
{"url": "http://127.0.0.1:5000/1/", "text": "build the codez"},
138
138
{"url": "http://127.0.0.1:5000/2/", "text": "paint the door"}]
Copy file name to clipboardExpand all lines: docs/index.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ Flask API is a drop-in replacement for Flask that provides an implementation of
14
14
15
15
Requirements:
16
16
17
-
* Python 2.7+ or 3.4+
18
-
* Flask 0.12.3+
17
+
* Python 3.6+
18
+
* Flask 1.1+
19
19
20
20
The following packages are optional:
21
21
@@ -39,7 +39,7 @@ Return any valid response object as normal, or return a `list` or `dict`.
39
39
def example():
40
40
return {'hello': 'world'}
41
41
42
-
A renderer for the response data will be selected using content negotiation based on the client 'Accept' header. If you're making the API request from a regular client, this will default to a JSON response. If you're viewing the API in a browser it'll default to the browsable API HTML.
42
+
A renderer for the response data will be selected using content negotiation based on the client 'Accept' header. If you're making the API request from a regular client, this will default to a JSON response. If you're viewing the API in a browser it'll default to the browsable API HTML.
43
43
44
44
## Requests
45
45
@@ -55,23 +55,23 @@ The following example demonstrates a simple API for creating, listing, updating
55
55
56
56
from flask import request, url_for
57
57
from flask_api import FlaskAPI, status, exceptions
0 commit comments