apis_core.generic.generators#

Module Contents#

Classes#

API#

class apis_core.generic.generators.CustomEndpointEnumerator(patterns=None, urlconf=None)#

Bases: drf_spectacular.generators.EndpointEnumerator

_generate_content_type_endpoint(content_type: django.contrib.contenttypes.models.ContentType, method: str = 'list')#

Create a endpoint tuple, usable by the SchemaGenerator of DRF spectacular

get_api_endpoints(patterns=None, prefix='')#

Call the EndpointEnumerator’s get_api_endpoints method to get all the automatically found endpoints, remove the ones that we want to override and the add our custom endpoints to this list.

class apis_core.generic.generators.CustomSchemaGenerator(*args, **kwargs)#

Bases: drf_spectacular.generators.SchemaGenerator

Initialization

endpoint_inspector_cls = None#