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)
--- a/server/python/django2/renkanmanager/versioning/v1_0_urls.py Thu Apr 07 13:18:32 2016 +0200
+++ b/server/python/django2/renkanmanager/versioning/v1_0_urls.py Thu Apr 21 15:18:19 2016 +0200
@@ -5,9 +5,9 @@
urlpatterns = [
url(r'^renkans/$', RenkanList.as_view(), name='renkan_list'),
url(r'^workspaces/(?P<workspace_guid>[\w-]+)/renkans/$', RenkanList.as_view(), name='renkan_list_workspace'),
- url(r'^renkans/(?P<renkan_guid>[\w-]+)/$', RenkanDetail.as_view(), name='renkan_detail'),
+ url(r'^renkans/(?P<renkan_guid>[\w-]+)/?$', RenkanDetail.as_view(), name='renkan_detail'),
url(r'^workspaces/$', WorkspaceList.as_view(), name='workspace_list'),
- url(r'^workspaces/(?P<workspace_guid>[\w-]+)/$', WorkspaceDetail.as_view(), name='workspace_detail'),
+ url(r'^workspaces/(?P<workspace_guid>[\w-]+)/?$', WorkspaceDetail.as_view(), name='workspace_detail'),
url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/$', RevisionList.as_view(), name='revision_list'),
- url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/(?P<revision_guid>[\w-]+)/$', RevisionDetail.as_view(), name='revision_detail')
+ url(r'^renkans/(?P<renkan_guid>[\w-]+)/revisions/(?P<revision_guid>[\w-]+)/?$', RevisionDetail.as_view(), name='revision_detail')
]
\ No newline at end of file