from django.urls import path,include
from rest_framework.routers import DefaultRouter
from .views import  MainModelViewSet

router = DefaultRouter()
router.register('MainModel',MainModelViewSet, basename="api")


urlpatterns = [
    path('api/',include(router.urls) ),
]
1e3a908b3a40dd895d7981b4a0310f7f474d36ab
<mask token>

<mask token>
router.register('MainModel', MainModelViewSet, basename='api')
<mask token>

<mask token>
router = DefaultRouter()
router.register('MainModel', MainModelViewSet, basename='api')
urlpatterns = [path('api/', include(router.urls))]

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import MainModelViewSet
router = DefaultRouter()
router.register('MainModel', MainModelViewSet, basename='api')
urlpatterns = [path('api/', include(router.urls))]

from django.urls import path,include
from rest_framework.routers import DefaultRouter
from .views import  MainModelViewSet

router = DefaultRouter()
router.register('MainModel',MainModelViewSet, basename="api")


urlpatterns = [
    path('api/',include(router.urls) ),
]