apis_core.generic.routers#

Module Contents#

Classes#

CustomAPIRootView

The default basic root view for CustomDefaultRouter

CustomDefaultRouter

The CustomDefaultRouter only diverts from the Django Rest Framework DefaultRouter by setting the APIRootView to our CustomAPIRootView.

API#

class apis_core.generic.routers.CustomAPIRootView(**kwargs)#

Bases: rest_framework.routers.APIRootView

The default basic root view for CustomDefaultRouter

This view lists the output of the default APIRootView of the Django Rest Framework. In addition, it injects the routes of the genericmodelapi (those are not hardcoded registered but autogenerated based on the models that inherit from GenericModel).

Initialization

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get(request, *args, **kwargs)#
class apis_core.generic.routers.CustomDefaultRouter(*args, **kwargs)#

Bases: rest_framework.routers.DefaultRouter

The CustomDefaultRouter only diverts from the Django Rest Framework DefaultRouter by setting the APIRootView to our CustomAPIRootView.

Initialization

APIRootView = None#