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
Copy file name to clipboardExpand all lines: docs/about/release-notes.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Release Notes
2
2
3
-
This project is currently in beta. It is functional and well tested but you are advised to pay close attention to the release notes when upgrading to future versions.
Copy file name to clipboardExpand all lines: docs/index.md
+60-96Lines changed: 60 additions & 96 deletions
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,10 @@ Browsable Web APIs for Flask
6
6
7
7
## Overview
8
8
9
-
Flask API is an implementation of the same web browsable APIs that [Django REST framework][django-rest-framework] provides.
10
-
11
-
It gives you properly content negotiated responses and smart request parsing.
12
-
13
-
It is currently a work in progress, but the fundamentals are in place and you can already start building kick-ass browsable Web APIs with it. If you want to start using Flask API right now go ahead and do so, but be sure to follow the release notes of new versions carefully.
9
+
Flask API is a drop-in replacement for Flask that provides an implementation of browsable APIs similar to what [Django REST framework](http://www.django-rest-framework.org) provides. It gives you properly content negotiated-responses and smart request parsing:
14
10
15
11

16
12
17
-
## Roadmap
18
-
19
-
Future work on getting Flask API to a 1.0 release will include:
20
-
21
-
* Authentication, including session, basic and token authentication.
22
-
* Permissions, including a simple user-is-authenticated permission.
23
-
* Throttling, including a base rate throttling implementation.
24
-
* Support for using class based views, including the base view class.
25
-
* Browsable API improvements, such as breadcrumb generation.
26
-
* Customizable exception handling.
27
-
* CSRF protection for session authenticated requests.
28
-
* Login and logout views for the browsable API.
29
-
* Documentation on how to deal with request validation.
30
-
* Documentation on how to deal with hyperlinking.
31
-
32
-
It is also possible that the core of Flask API could be refactored into an external dependency, in order to make browsable APIs easily available to any Python web framework.
33
-
34
13
## Installation
35
14
36
15
Requirements:
@@ -42,14 +21,13 @@ The following packages are optional:
42
21
43
22
* Markdown (2.1.0+) - Markdown support for the browsable API.
44
23
45
-
Install using `pip`, including any optional packages you want...
24
+
Install using `pip`:
46
25
47
26
pip install Flask-API
48
-
pip install markdown # Markdown support for the browsable API.
49
27
50
-
Import and initialize your application.
28
+
Import and initialize your application:
51
29
52
-
from flask.ext.api import FlaskAPI
30
+
from flask_api import FlaskAPI
53
31
54
32
app = FlaskAPI(__name__)
55
33
@@ -75,62 +53,62 @@ Access the parsed request data using `request.data`. This will handle JSON or f
75
53
76
54
The following example demonstrates a simple API for creating, listing, updating and deleting notes.
77
55
78
-
from flask import request, url_for
79
-
from flask.ext.api import FlaskAPI, status, exceptions
@@ -148,17 +126,3 @@ You can now open a new tab and interact with the API from the command line:
148
126
{"url": "http://127.0.0.1:5000/1/", "text": "flask api is teh awesomez"}
149
127
150
128
You can also work on the API directly in your browser, by opening <http://127.0.0.1:5000/>. You can then navigate between notes, and make `GET`, `PUT`, `POST` and `DELETE` API requests.
151
-
152
-
## Credits
153
-
154
-
To stay up to date with progress on Flask API, follow Tom Christie on twitter, [here][tomchristie].
155
-
156
-
Many thanks to [Nicolas Clairon][nicolas-clarion] for making the `flask_api` PyPI package available.
0 commit comments