mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Rename to EndpointEnumerator
This commit is contained in:
parent
e7f3219fee
commit
35e058cdb1
|
@ -1,3 +1,14 @@
|
|||
# We expose a minimal "public" API directly from `schemas`. This covers the
|
||||
# basic use-cases:
|
||||
#
|
||||
# from rest_framework.schemas import (
|
||||
# AutoSchema,
|
||||
# ManualSchema,
|
||||
# get_schema_view,
|
||||
# SchemaGenerator,
|
||||
# )
|
||||
#
|
||||
# Other access should target the submodules directly
|
||||
from .generators import SchemaGenerator
|
||||
from .inspectors import AutoSchema, ManualSchema # noqa
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ def endpoint_ordering(endpoint):
|
|||
return (path, method_priority)
|
||||
|
||||
|
||||
class EndpointInspector(object):
|
||||
class EndpointEnumerator(object):
|
||||
"""
|
||||
A class to determine the available API endpoints that a project exposes.
|
||||
"""
|
||||
|
@ -172,7 +172,7 @@ class SchemaGenerator(object):
|
|||
'patch': 'partial_update',
|
||||
'delete': 'destroy',
|
||||
}
|
||||
endpoint_inspector_cls = EndpointInspector
|
||||
endpoint_inspector_cls = EndpointEnumerator
|
||||
|
||||
# Map the method names we use for viewset actions onto external schema names.
|
||||
# These give us names that are more suitable for the external representation.
|
||||
|
|
Loading…
Reference in New Issue
Block a user