forked from jfinkels/flask-restless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
61 lines (58 loc) · 2.02 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# __init__.py - indicates that this directory is a Python package
#
# Copyright 2011 Lincoln de Sousa <[email protected]>.
# Copyright 2012, 2013, 2014, 2015, 2016 Jeffrey Finkelstein
# <[email protected]> and contributors.
#
# This file is part of Flask-Restless.
#
# Flask-Restless is distributed under both the GNU Affero General Public
# License version 3 and under the 3-clause BSD license. For more
# information, see LICENSE.AGPL and LICENSE.BSD.
"""Provides classes for creating endpoints for interacting with
SQLAlchemy models via the JSON API protocol.
"""
# The following names are available as part of the public API for
# Flask-Restless. End users of this package can import these names by doing
# ``from flask_restless import APIManager``, for example.
from .helpers import collection_name
from .helpers import model_for
from .helpers import serializer_for
from .helpers import url_for
from .helpers import primary_key_for
from .manager import APIManager
from .manager import IllegalArgumentError
from .serialization import DefaultDeserializer
from .serialization import DefaultSerializer
from .serialization import DeserializationException
from .serialization import MultipleExceptions
from .serialization import SerializationException
from .serialization import simple_serialize
from .serialization import simple_serialize_many
from .search import register_operator
from .views import JSONAPI_MIMETYPE
from .views import ProcessingException
#: The current version of this extension.
#:
#: This should be the same as the version specified in the :file:`setup.py`
#: file.
__version__ = '1.0.0b2-dev'
__all__ = [
'APIManager',
'collection_name',
'DefaultDeserializer',
'DefaultSerializer',
'DeserializationException',
'IllegalArgumentError',
'JSONAPI_MIMETYPE',
'model_for',
'MultipleExceptions',
'primary_key_for',
'ProcessingException',
'register_operator',
'SerializationException',
'serializer_for',
'simple_serialize',
'simple_serialize_many',
'url_for',
]