Skip to content

Commit 35e058c

Browse files
committed
Rename to EndpointEnumerator
1 parent e7f3219 commit 35e058c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

rest_framework/schemas/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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
112
from .generators import SchemaGenerator
213
from .inspectors import AutoSchema, ManualSchema # noqa
314

rest_framework/schemas/generators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def endpoint_ordering(endpoint):
7979
return (path, method_priority)
8080

8181

82-
class EndpointInspector(object):
82+
class EndpointEnumerator(object):
8383
"""
8484
A class to determine the available API endpoints that a project exposes.
8585
"""
@@ -172,7 +172,7 @@ class SchemaGenerator(object):
172172
'patch': 'partial_update',
173173
'delete': 'destroy',
174174
}
175-
endpoint_inspector_cls = EndpointInspector
175+
endpoint_inspector_cls = EndpointEnumerator
176176

177177
# Map the method names we use for viewset actions onto external schema names.
178178
# These give us names that are more suitable for the external representation.

0 commit comments

Comments
 (0)