File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
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
12
from .generators import SchemaGenerator
2
13
from .inspectors import AutoSchema , ManualSchema # noqa
3
14
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def endpoint_ordering(endpoint):
79
79
return (path , method_priority )
80
80
81
81
82
- class EndpointInspector (object ):
82
+ class EndpointEnumerator (object ):
83
83
"""
84
84
A class to determine the available API endpoints that a project exposes.
85
85
"""
@@ -172,7 +172,7 @@ class SchemaGenerator(object):
172
172
'patch' : 'partial_update' ,
173
173
'delete' : 'destroy' ,
174
174
}
175
- endpoint_inspector_cls = EndpointInspector
175
+ endpoint_inspector_cls = EndpointEnumerator
176
176
177
177
# Map the method names we use for viewset actions onto external schema names.
178
178
# These give us names that are more suitable for the external representation.
You can’t perform that action at this time.
0 commit comments