diff options
author | Stephen Finucane <stephen@that.guru> | 2017-02-06 20:04:37 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-03-01 22:17:17 +0000 |
commit | e7538f19657c9dec47b62b2f5a61d08bd8f84cff (patch) | |
tree | 0a76a7cc102776169ad674136cc5a14a81c63392 /patchwork/urls.py | |
parent | e0eeeed6648003ce1e78d42ca336cd751f66cd0e (diff) | |
download | patchwork-e7538f19657c9dec47b62b2f5a61d08bd8f84cff.tar patchwork-e7538f19657c9dec47b62b2f5a61d08bd8f84cff.tar.gz |
REST: Expose events
This is a list only endpoint as it's expected that we would kill events
after a certain duration and would have no reason to allow indexing of
past events.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r-- | patchwork/urls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py index 2b2f5a5..09b8b31 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -159,8 +159,9 @@ if settings.ENABLE_REST_API: 'djangorestframework must be installed to enable the REST API.') from patchwork.api import check as api_check_views - from patchwork.api import index as api_index_views from patchwork.api import cover as api_cover_views + from patchwork.api import event as api_event_views + from patchwork.api import index as api_index_views from patchwork.api import patch as api_patch_views from patchwork.api import person as api_person_views from patchwork.api import project as api_project_views @@ -213,6 +214,9 @@ if settings.ENABLE_REST_API: url(r'^projects/(?P<pk>[^/]+)/$', api_project_views.ProjectDetail.as_view(), name='api-project-detail'), + url(r'^events/$', + api_event_views.EventList.as_view(), + name='api-event-list'), ] urlpatterns += [ |