server/python/django2/renkanmanager/versioning/v1_0_urls.py
author ymh <ymh.work@gmail.com>
Thu, 21 Apr 2016 16:18:08 +0200
changeset 607 d55e89c25d51
parent 605 13d355fd09bf
child 665 69d13e7dd286
permissions -rw-r--r--
Added tag V00.12.19 for changeset e7e699f3cf97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
590
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     1
from django.conf.urls import include, url
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     2
from django.contrib import admin
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     3
from renkanmanager.api.views import RenkanList, RenkanDetail, WorkspaceList, WorkspaceDetail, RevisionList, RevisionDetail
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     4
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     5
urlpatterns = [
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     6
    url(r'^renkans/$', RenkanList.as_view(), name='renkan_list'),
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     7
    url(r'^workspaces/(?P<workspace_guid>[\w-]+)/renkans/$', RenkanList.as_view(), name='renkan_list_workspace'),
605
13d355fd09bf updated uri to allow optional trailing slash on single resource URIs (django automatic redirects don't carry over the Authorization header that can sometimes be needed, for instance with OAuth)
durandn
parents: 590
diff changeset
     8
    url(r'^renkans/(?P<renkan_guid>[\w-]+)/?$', RenkanDetail.as_view(), name='renkan_detail'),
590
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
     9
    url(r'^workspaces/$', WorkspaceList.as_view(), name='workspace_list'),
605
13d355fd09bf updated uri to allow optional trailing slash on single resource URIs (django automatic redirects don't carry over the Authorization header that can sometimes be needed, for instance with OAuth)
durandn
parents: 590
diff changeset
    10
    url(r'^workspaces/(?P<workspace_guid>[\w-]+)/?$', WorkspaceDetail.as_view(), name='workspace_detail'),
590
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
    11
    url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/$', RevisionList.as_view(), name='revision_list'),
605
13d355fd09bf updated uri to allow optional trailing slash on single resource URIs (django automatic redirects don't carry over the Authorization header that can sometimes be needed, for instance with OAuth)
durandn
parents: 590
diff changeset
    12
    url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/(?P<revision_guid>[\w-]+)/?$', RevisionDetail.as_view(), name='revision_detail')
590
3be2a86981c2 API versioning via namespace
durandn
parents:
diff changeset
    13
]