Created
May 22, 2020 21:38
-
-
Save NurElHuda/47a57f55d713fc13b1a5bec43b870d42 to your computer and use it in GitHub Desktop.
Django_rest_framework_nested_serializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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