| author | ymh <ymh.work@gmail.com> |
| Sun, 14 Jul 2024 21:59:51 +0200 | |
| changeset 665 | 69d13e7dd286 |
| parent 605 | 13d355fd09bf |
| permissions | -rw-r--r-- |
| 665 | 1 |
# -*- coding: utf-8 -*- |
| 590 | 2 |
from django.conf.urls import include, url |
3 |
from django.contrib import admin |
|
4 |
from renkanmanager.api.views import RenkanList, RenkanDetail, WorkspaceList, WorkspaceDetail, RevisionList, RevisionDetail |
|
5 |
||
6 |
urlpatterns = [ |
|
7 |
url(r'^renkans/$', RenkanList.as_view(), name='renkan_list'), |
|
8 |
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
|
9 |
url(r'^renkans/(?P<renkan_guid>[\w-]+)/?$', RenkanDetail.as_view(), name='renkan_detail'), |
| 590 | 10 |
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
|
11 |
url(r'^workspaces/(?P<workspace_guid>[\w-]+)/?$', WorkspaceDetail.as_view(), name='workspace_detail'), |
| 590 | 12 |
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
|
13 |
url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/(?P<revision_guid>[\w-]+)/?$', RevisionDetail.as_view(), name='revision_detail') |
| 590 | 14 |
] |