File tree Expand file tree Collapse file tree 5 files changed +42
-11
lines changed Expand file tree Collapse file tree 5 files changed +42
-11
lines changed Original file line number Diff line number Diff line change 1
- # We expose a minimal "public" API directly from `schemas`. This covers the
2
- # basic use-cases:
3
- #
4
- # from rest_framework.schemas import (
5
- # AutoSchema,
6
- # ManualSchema,
7
- # get_schema_view,
8
- # SchemaGenerator,
9
- # )
10
- #
11
- # Other access should target the submodules directly
1
+ """
2
+ rest_framework.schemas
3
+
4
+ schemas:
5
+ __init__.py
6
+ generators.py # Top-down schema generation
7
+ inspectors.py # Per-endpoint view introspection
8
+ utils.py # Shared helper functions
9
+ views.py # Houses `SchemaView`, `APIView` subclass.
10
+
11
+ We expose a minimal "public" API directly from `schemas`. This covers the
12
+ basic use-cases:
13
+
14
+ from rest_framework.schemas import (
15
+ AutoSchema,
16
+ ManualSchema,
17
+ get_schema_view,
18
+ SchemaGenerator,
19
+ )
20
+
21
+ Other access should target the submodules directly
22
+ """
12
23
from .generators import SchemaGenerator
13
24
from .inspectors import AutoSchema , ManualSchema # noqa
14
25
Original file line number Diff line number Diff line change
1
+ """
2
+ generators.py # Top-down schema generation
3
+
4
+ See schemas.__init__.py for package overview.
5
+ """
1
6
from collections import OrderedDict
2
7
from importlib import import_module
3
8
Original file line number Diff line number Diff line change
1
+ """
2
+ inspectors.py # Per-endpoint view introspection
3
+
4
+ See schemas.__init__.py for package overview.
5
+ """
1
6
import re
2
7
from collections import OrderedDict
3
8
Original file line number Diff line number Diff line change
1
+ """
2
+ utils.py # Shared helper functions
3
+
4
+ See schemas.__init__.py for package overview.
5
+ """
1
6
2
7
3
8
def is_list_view (path , method , view ):
Original file line number Diff line number Diff line change
1
+ """
2
+ views.py # Houses `SchemaView`, `APIView` subclass.
3
+
4
+ See schemas.__init__.py for package overview.
5
+ """
1
6
from rest_framework import exceptions , renderers
2
7
from rest_framework .response import Response
3
8
from rest_framework .settings import api_settings
You can’t perform that action at this time.
0 commit comments