summaryrefslogtreecommitdiff
path: root/patchwork/urls.py
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-06-16 16:13:18 -0500
committerStephen Finucane <stephen.finucane@intel.com>2016-06-27 18:19:54 +0100
commitee15585ed48e67dc584bfbc8f1af12225abdfd44 (patch)
tree0731016077bd44011e93db4cc2354914f50ef9c9 /patchwork/urls.py
parent92b6e6a39595841782b967e34e9b3bdebefbf1ec (diff)
downloadpatchwork-ee15585ed48e67dc584bfbc8f1af12225abdfd44.tar
patchwork-ee15585ed48e67dc584bfbc8f1af12225abdfd44.tar.gz
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 <andy.doan@linaro.org> Signed-off-by: Stephen Finucane <stephen.finucane@intel.com> Inspired-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r--patchwork/urls.py3
1 files changed, 2 insertions, 1 deletions
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