-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path__init__.py
More file actions
49 lines (43 loc) · 1.22 KB
/
__init__.py
File metadata and controls
49 lines (43 loc) · 1.22 KB
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
"""
Tools for writing and generating API documentation for Open edX REST APIs.
In this file is the public Python API for REST documentation.
"""
# The functions are split into separate files for code organization,
# but they are imported into here so they can be imported
# directly from `edx_api_doc_tools`.
# Expose OpenAPI module through the edx_api_doc_tools package
# so that general users don't have to know about drf_yasg.
from drf_yasg import openapi
# When adding new functions to this API,
# add them to the appropriate sub-module,
# and then "expose" them by importing them here.
# Use explicit imports (as opposed to wildcard imports)
# so that we hide internal names and keep this module
# a nice catalog of functions.
from .conf_utils import (
ApiSchemaGenerator,
get_docs_cache_timeout,
get_docs_urls,
make_api_info,
make_docs_data_view,
make_docs_ui_view,
make_docs_urls,
)
from .data import (
FILE_PARAM,
PARAM_TYPES,
ParameterLocation,
parameter,
path_parameter,
query_parameter,
string_parameter,
)
from .view_utils import (
exclude_schema,
exclude_schema_for,
exclude_schema_for_all,
is_schema_request,
schema,
schema_for,
)
__version__ = "2.1.1"