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
**flask-smore** is a lightweight tool for building REST APIs in Flask. **flask-smore** uses webargs_ for request parsing, marshmallow_ for response formatting, and apispec_ to automatically generate Swagger markup. You can use **flask-smore** with vanilla Flask or a fuller-featured framework like Flask-RESTful_.
13
+
**flask-apispec** is a lightweight tool for building REST APIs in Flask. **flask-apispec** uses webargs_ for request parsing, marshmallow_ for response formatting, and apispec_ to automatically generate Swagger markup. You can use **flask-apispec** with vanilla Flask or a fuller-featured framework like Flask-RESTful_.
14
14
15
15
Install
16
16
-------
17
17
18
18
.. code-block::
19
19
20
-
pip install flask-smore
20
+
pip install flask-apispec
21
21
22
22
Quickstart
23
23
----------
24
24
25
25
.. code-block:: python
26
26
27
27
from flask import Flask
28
-
fromflask_smoreimport use_kwargs, marshal_with
28
+
fromflask_apispecimport use_kwargs, marshal_with
29
29
30
30
from marshmallow import fields, Schema
31
31
@@ -43,12 +43,12 @@ Quickstart
43
43
defget_pets(**kwargs):
44
44
return Pet.query.filter_by(**kwargs)
45
45
46
-
**flask-smore** works with function- and class-based views:
46
+
**flask-apispec** works with function- and class-based views:
47
47
48
48
.. code-block:: python
49
49
50
50
from flask import make_response
51
-
fromflask_smore.views import MethodResource
51
+
fromflask_apispec.views import MethodResource
52
52
53
53
classPetResource(MethodResource):
54
54
@@ -74,12 +74,12 @@ Quickstart
74
74
pet.delete()
75
75
return make_response('', 204)
76
76
77
-
**flask-smore** generates Swagger markup for your view functions and classes:
77
+
**flask-apispec** generates Swagger markup for your view functions and classes:
78
78
79
79
.. code-block:: python
80
80
81
81
from apispec import APISpec
82
-
fromflask_smore.apidoc import Documentation
82
+
fromflask_apispec.apidoc import Documentation
83
83
84
84
spec = APISpec(
85
85
title='pets',
@@ -96,9 +96,9 @@ Quickstart
96
96
Notes
97
97
-----
98
98
99
-
**flask-smore** isn't stable yet, and the interface and internals may change. Bug reports and pull requests are much appreciated.
99
+
**flask-apispec** isn't stable yet, and the interface and internals may change. Bug reports and pull requests are much appreciated.
100
100
101
-
**flask-smore** is strongly inspired by Flask-RESTful_ and Flask-RESTplus_, but attempts to provide similar functionality with greater flexibility and less code.
101
+
**flask-apispec** is strongly inspired by Flask-RESTful_ and Flask-RESTplus_, but attempts to provide similar functionality with greater flexibility and less code.
0 commit comments