from django.urls import path, include
from rest_framework import routers
from .views import UserViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
urlpatterns = [
path('', include(router.urls)),
]
api2/
user.json
, users.api
users/99.json
, users/99.api
https://www.inflearn.com/course/%EC%9E%A5%EA%B3%A0-drf/dashboard