from django.conf.urls import url
from .views import (
	PostCreateAPIView,
	PostListAPIView,
	PostDetailAPIView,
	PostDeleteAPIView,
	PostUpdatetAPIView,

	)

urlpatterns = [
    
     url(r'^$',PostListAPIView.as_view(),name="list"),
     url(r'^create/$',PostCreateAPIView.as_view(),name="create"),
     url(r'^(?P<slug>[\w-]+)/$',PostDetailAPIView.as_view(),name="detail"),
     url(r'^(?P<slug>[\w-]+)/edit/$',PostUpdatetAPIView.as_view(),name="update"),
     url(r'^(?P<slug>[\w-]+)/delete/$',PostDeleteAPIView.as_view(),name="delete"),

]
