<filename>book/urls.py
from django.urls import path
from .views import GetAllData, GetFavData, UpdateFavData, PostModelData, SearchData, DeleteData

urlpatterns = [
    path('get-all-data', GetAllData.as_view()),
    path('get-fav-data', GetFavData.as_view()),
    path('update-fav-data/<int:pk>/', UpdateFavData.as_view()),
    path('post-model', PostModelData.as_view()),
    path('search/', SearchData.as_view()),
    path('delete/<int:pk>/', DeleteData.as_view()),
]

<filename>book/urls.py
from django.urls import path
from .views import GetAllData, GetFavData, UpdateFavData, PostModelData, SearchData, DeleteData

urlpatterns = [
    path('get-all-data', GetAllData.as_view()),
    path('get-fav-data', GetFavData.as_view()),
    path('update-fav-data/<int:pk>/', UpdateFavData.as_view()),
    path('post-model', PostModelData.as_view()),
    path('search/', SearchData.as_view()),
    path('delete/<int:pk>/', DeleteData.as_view()),
]
