from django.urls import path , include
from .views import *
from rest_framework import routers

router = routers.DefaultRouter()
router.register('employee' , EmployeeViewSet)
#router.register('books' , BookList)

urlpatterns = [
    path('api/books' ,BookList.as_view()),
    path('api/books/<int:pk>', BookDetail.as_view()),
    path('' , include(router.urls)),
]

bf94caf5356f2f6056539565510d40e65a46879d
<mask token>

<mask token>
router.register('employee', EmployeeViewSet)
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('employee', EmployeeViewSet)
urlpatterns = [path('api/books', BookList.as_view()), path(
    'api/books/<int:pk>', BookDetail.as_view()), path('', include(router.urls))
    ]

from django.urls import path, include
from .views import *
from rest_framework import routers
router = routers.DefaultRouter()
router.register('employee', EmployeeViewSet)
urlpatterns = [path('api/books', BookList.as_view()), path(
    'api/books/<int:pk>', BookDetail.as_view()), path('', include(router.urls))
    ]

from django.urls import path , include
from .views import *
from rest_framework import routers

router = routers.DefaultRouter()
router.register('employee' , EmployeeViewSet)
#router.register('books' , BookList)

urlpatterns = [
    path('api/books' ,BookList.as_view()),
    path('api/books/<int:pk>', BookDetail.as_view()),
    path('' , include(router.urls)),
]
