Add event list API view

This commit is contained in:
Roberto Rosario
2017-01-29 01:25:59 -04:00
parent 914c5e7146
commit 6fbd166f3c
8 changed files with 118 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from django.conf.urls import patterns, url
from .api_views import APIEventTypeList
from .api_views import APIEventListView, APIEventTypeListView
from .views import EventListView, ObjectEventListView, VerbEventListView
urlpatterns = patterns(
@@ -19,5 +19,6 @@ urlpatterns = patterns(
)
api_urls = [
url(r'^$', APIEventTypeList.as_view(), name='event-type-list'),
url(r'^types/$', APIEventTypeListView.as_view(), name='event-type-list'),
url(r'^events/$', APIEventListView.as_view(), name='event-list'),
]