Update urls.py As in your creation of user API, group is not mapped with user so we added new API for mapping.

So api_urls is changed for the same.
This commit is contained in:
Lokesh
2017-01-11 08:05:27 +00:00
parent b5c6fa40fa
commit 93e178a1e2

View File

@@ -4,7 +4,7 @@ from django.conf.urls import patterns, url
from .api_views import (
APICurrentUserView, APIGroupListView, APIGroupView, APIUserListView,
APIUserView
APIUserView, APIUserGroupMap
)
from .views import (
GroupCreateView, GroupDeleteView, GroupEditView, GroupListView,
@@ -62,4 +62,6 @@ api_urls = patterns(
url(
r'^users/current/$', APICurrentUserView.as_view(), name='user-current'
),
url(r'^users/(?P<pk>[0-9]+)/groups/$',APIUserGroupMap.as_view(),
name='users-group-map'),
)