Automatic routing for the DRF, can be achieved for the ViewSet classes.
Assume that the ViewSet class goes by the name of MyViewSet for
this example.
To generate the routing of MyViewSet, the SimpleRouter will be utilized. On myapp/urls.py:
from rest_framework import routers
router = ...