-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
24 lines (17 loc) · 1.23 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.conf.urls.defaults import patterns, url, include
from datawinners.dcs_app.view import get_questions_paginated_or_by_ids, paginated_submissions_or_by_id_or_create, update_submission_or_get_by_id, authenticate_user, \
check_submissions_status, \
get_projects_status, attachment_post, attachment_get, get_delta_submission
urlpatterns = patterns('',
(r'', include('datawinners.urls')), #including the datawinners url
(r'', include('datawinners.dcs_web.urls')),
url(r'^client/auth/$', authenticate_user),
url(r'^client/projects/$', get_questions_paginated_or_by_ids),
url(r'^client/project_status/$', get_projects_status),
url(r'^client/projects/(?P<project_uuid>\w+?)/submissions/(?P<submission_uuid>\w+?)$', update_submission_or_get_by_id),
url(r'^client/projects/(?P<project_uuid>\w+?)/submissions/', paginated_submissions_or_by_id_or_create),
url(r'^client/projects/(?P<project_uuid>\w+?)/submission_status/$', check_submissions_status),
url(r'^client/(?P<project_uuid>\w+?)/delta/$', get_delta_submission),
url(r'^client/attachment/(?P<survey_response_id>\w+?)$', attachment_post),
url(r'^client/attachment/(?P<survey_response_id>\w+?)/(?P<file_name>[\w|\W]+.[\w|\W]+)$', attachment_get),
)