Ejemplo n.º 1
0
from django.conf.urls import url
from api.views import ListOrCreateMovie, DetailUpdateDelete

urlpatterns = [
    url(r'^movies/$', ListOrCreateMovie.as_view()),
    url(r'^movies/(?P<pk>[0-9]+)', DetailUpdateDelete.as_view()),
]