<gh_stars>0
from django.urls import path, include
from .views import ArticleViewSet, GenericAPIView
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('article', ArticleViewSet, basename="article")

urlpatterns = [
    path('viewset/', include(router.urls)),
    path('viewset/<int:pk>/', include(router.urls)),
    # path('article/', ArticleAPIView.as_view()),
    # path('detail/<int:id>/', ArticleDetails.as_view())
    # path('generic/article/<int:id>/', GenericAPIView.as_view())
]
from django.urls import path, include
from .views import ArticleViewSet, GenericAPIView
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('article', ArticleViewSet, basename="article")

urlpatterns = [
    path('viewset/', include(router.urls)),
    path('viewset/<int:pk>/', include(router.urls)),
    # path('article/', ArticleAPIView.as_view()),
    # path('detail/<int:id>/', ArticleDetails.as_view())
    # path('generic/article/<int:id>/', GenericAPIView.as_view())
]
# path('article/', ArticleAPIView.as_view()), # path('detail/<int:id>/', ArticleDetails.as_view()) # path('generic/article/<int:id>/', GenericAPIView.as_view())