Skip to content

Instantly share code, notes, and snippets.



Created Sep 8, 2019
What would you like to do?
blog urls
from django.urls import path
from .views import blog_views
urlpatterns = [
path('posts/', blog_views.PostListCreateAPIView.as_view(), name='api-post-list'),
path('posts/<uuid:pk>/', blog_views.PostDetailsAPIView.as_view(), name='api-post-details'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment