diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-06-16 16:13:18 -0500 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-06-27 18:19:54 +0100 |
commit | ee15585ed48e67dc584bfbc8f1af12225abdfd44 (patch) | |
tree | 0731016077bd44011e93db4cc2354914f50ef9c9 /patchwork/urls.py | |
parent | 92b6e6a39595841782b967e34e9b3bdebefbf1ec (diff) | |
download | patchwork-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.py | 3 |
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 |