Skip to content

Instantly share code, notes, and snippets.

@NurElHuda
Created May 22, 2020 21:38
Show Gist options
  • Save NurElHuda/47a57f55d713fc13b1a5bec43b870d42 to your computer and use it in GitHub Desktop.
Save NurElHuda/47a57f55d713fc13b1a5bec43b870d42 to your computer and use it in GitHub Desktop.
Django_rest_framework_nested_serializer
from django.urls import path
from . import views
urlpatterns = [
path('user/', views.UserCreate.as_view(), name='user-create'),
path('user/<int:pk>/', views.UserUpdate.as_view(), name='user-update'),
path('client/', views.ClientCreate.as_view(), name='client-create'),
path('client/<int:pk>/', views.ClientUpdate.as_view(), name='client-update')
# other endpoints paths...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment