From ee15585ed48e67dc584bfbc8f1af12225abdfd44 Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Thu, 16 Jun 2016 16:13:18 -0500 Subject: REST: Add Projects to the API This exports projects via the REST API. Security Constraints: * Anyone (logged in or not) can read all objects. * No one can create/delete objects. * Project maintainers are allowed to update (ie "patch" attributes) Signed-off-by: Andy Doan Signed-off-by: Stephen Finucane Inspired-by: Damien Lespiau --- patchwork/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'patchwork/urls.py') diff --git a/patchwork/urls.py b/patchwork/urls.py index 2318ab9..44d794e 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -149,7 +149,8 @@ if settings.ENABLE_REST_API: 'djangorestframework must be installed to enable the REST API.') import patchwork.views.rest_api urlpatterns += [ - url(r'^api/1.0/', include(patchwork.views.rest_api.router.urls)), + url(r'^api/1.0/', include( + patchwork.views.rest_api.router.urls, namespace='api_1.0')), ] # redirect from old urls -- cgit v1.2.3