apis_core.generic.routers#
Module Contents#
Classes#
The default basic root view for 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.APIRootViewThe 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)#