urlpatterns = patterns( '', (r'^$', record), (r'^/apps/', include('indivo.urls.record_apps')), (r'^/audits/', include('indivo.urls.record_audits')), (r'^/autoshare/', include('indivo.urls.record_autoshare')), (r'^/carenets/', include('indivo.urls.record_carenets')), (r'^/documents/', include('indivo.urls.record_documents')), (r'^/reports/', include('indivo.urls.record_reports')), # ownership ( r'^/owner$', MethodDispatcher({ 'GET': record_get_owner, 'PUT': record_set_owner, # for now, POST compatibility (Ben) 'POST': record_set_owner })), # shares (r'^/shares/$', MethodDispatcher({ 'GET': record_shares, 'POST': record_share_add })), (r'^/shares/(?P<other_account_id>[^/]+)/delete$', record_share_delete), # reset password (r'^/password_reset$', record_password_reset), # notify record (r'^/notify$', record_notify),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', # Old style audit views, supported for backwards compatibility (r'^$', MethodDispatcher({'GET': audit_record_view})), (r'^documents/(?P<document_id>[^/]+)/$', MethodDispatcher({'GET': audit_document_view})), (r'^documents/(?P<document_id>[^/]+)/functions/(?P<function_name>[^/]+)/$', MethodDispatcher({'GET': audit_function_view})), # Audit Using the Query API Interface (r'^query/$', MethodDispatcher({'GET': audit_query})))
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^minimal/measurements/(?P<lab_code>[^/]+)/$', MethodDispatcher({'GET': measurement_list})), (r'^minimal/immunizations/$', MethodDispatcher({'GET': immunization_list })), (r'^minimal/allergies/$', MethodDispatcher({'GET': allergy_list})), (r'^minimal/labs/$', MethodDispatcher({'GET': lab_list})), (r'^minimal/medications/$', MethodDispatcher({'GET': medication_list})), (r'^minimal/procedures/$', MethodDispatcher({'GET': procedure_list})), (r'^minimal/problems/$', MethodDispatcher({'GET': problem_list})), (r'^minimal/equipment/$', MethodDispatcher({'GET': equipment_list})), (r'^minimal/simple-clinical-notes/$', MethodDispatcher({'GET': simple_clinical_notes_list})), (r'^minimal/vitals/$', MethodDispatcher({'GET': vitals_list})), (r'^minimal/vitals/(?P<category>[^/]+)/$', MethodDispatcher({'GET': vitals_list})), (r'^experimental/ccr$', MethodDispatcher({'GET': report_ccr})), )
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', MethodDispatcher({'DELETE': carenet_delete})), (r'^/rename$', MethodDispatcher({'POST': carenet_rename})), (r'^/record$', MethodDispatcher({'GET': carenet_record})), # Manage documents (r'^/documents/', include('indivo.urls.carenet_documents')), # Manage accounts (r'^/accounts/$', MethodDispatcher({ 'GET': carenet_account_list, 'POST': carenet_account_create })), (r'^/accounts/(?P<account_id>[^/]+)$', MethodDispatcher({'DELETE': carenet_account_delete})), # Manage apps (r'^/apps/$', MethodDispatcher({'GET': carenet_apps_list})), (r'^/apps/(?P<pha_email>[^/]+)$', MethodDispatcher({ 'PUT': carenet_apps_create, 'DELETE': carenet_apps_delete })),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', MethodDispatcher({'GET': carenet_document_list})), (r'^(?P<document_id>[^/]+)/meta$', MethodDispatcher({'GET': carenet_document_meta})), (r'^(?P<document_id>[^/]+)$', MethodDispatcher({'GET': carenet_document})), # special documents (r'^special/(?P<special_document>[^/]+)$', MethodDispatcher({'GET': read_special_document_carenet})), ) """ (r'^(?P<document_id>[^/]+)/carenets/$', MethodDispatcher({ 'GET' : document_carenets })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)$', MethodDispatcher({ 'PUT' : carenet_document_placement, 'DELETE' : carenet_document_delete })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+/autoshare-revert)$', MethodDispatcher({ 'POST' : autoshare_revert })), # document list (r'^$', MethodDispatcher({
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^minimal/measurements/(?P<lab_code>[^/]+)/$', MethodDispatcher({'GET': measurement_list})), (r'^minimal/procedures/$', MethodDispatcher({'GET': procedure_list})), (r'^minimal/equipment/$', MethodDispatcher({'GET': equipment_list})), (r'^minimal/simple-clinical-notes/$', MethodDispatcher({'GET': simple_clinical_notes_list})), (r'^experimental/ccr$', MethodDispatcher({'GET': report_ccr})), (r'^(?P<data_model>[^/]+)/$', MethodDispatcher({'GET': generic_list})), )
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', MethodDispatcher({'GET' : carenet_document_list })), (r'^(?P<document_id>[^/]+)/meta$', MethodDispatcher({'GET' : carenet_document_meta})), (r'^(?P<document_id>[^/]+)$', MethodDispatcher({'GET' : carenet_document })), ) """ (r'^(?P<document_id>[^/]+)/carenets/$', MethodDispatcher({ 'GET' : document_carenets })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)$', MethodDispatcher({ 'PUT' : carenet_document_placement, 'DELETE' : carenet_document_delete })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+/autoshare-revert)$', MethodDispatcher({ 'POST' : autoshare_revert })), # document list (r'^$', MethodDispatcher({ 'GET': document_list,
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', MethodDispatcher({'DELETE': carenet_delete})), (r'^/rename$', MethodDispatcher({'POST': carenet_rename})), (r'^/record$', MethodDispatcher({'GET': carenet_record})), # Manage documents (r'^/documents/', include('indivo.urls.carenet_documents')), # Manage accounts (r'^/accounts/$', MethodDispatcher({ 'GET': carenet_account_list, 'POST': carenet_account_create })), (r'^/accounts/(?P<account_id>[^/]+)$', MethodDispatcher({'DELETE': carenet_account_delete})), # Manage apps (r'^/apps/$', MethodDispatcher({'GET': carenet_apps_list})), (r'^/apps/(?P<pha_email>[^/]+)$', MethodDispatcher({ 'PUT': carenet_apps_create, 'DELETE': carenet_apps_delete })),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', # OAuth (r'^oauth/', include('indivo.urls.oauth')), (r'^version$', MethodDispatcher({'GET': get_version})), # account-specific URLs (r'^accounts/$', MethodDispatcher({'POST': account_create})), (r'^accounts/search$', MethodDispatcher({'GET': account_search})), (r'^accounts/(?P<account_email>[^/]+)$', MethodDispatcher({'GET': account_info})), (r'^accounts/(?P<account_email>[^/]+)/', include('indivo.urls.account')), # carenet-specific URLs (r'^carenets/(?P<carenet_id>[^/]+)', include('indivo.urls.carenet')), # record-specific URLs (r'^records/$', MethodDispatcher({'POST': record_create})), (r'^records/external/(?P<principal_email>[^/]+)/(?P<external_id>[^/]+)$', MethodDispatcher({'PUT': record_create_ext})), (r'^records/search$', MethodDispatcher({'GET': record_search})), (r'^records/(?P<record_id>[^/]+)', include('indivo.urls.record')), # PHAs (r'^apps/$', MethodDispatcher({'GET': all_phas})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', ## ## Application-Specific Data Storage ## # Manifest for the app, SMART style (r'^/manifest$', MethodDispatcher({'GET': app_manifest})), # List of app-specific documents / create a doc (r'^/documents/$', MethodDispatcher({ 'GET': app_document_list, 'POST': app_document_create })), # create app-specific doc by document external ID (r'^/documents/external/(?P<external_id>[^/]+)$', MethodDispatcher({'PUT': app_document_create_or_update_ext})), # One app-specific document # app-specific document replace (r'^/documents/(?P<document_id>[^/]+)$', MethodDispatcher({ 'GET': app_specific_document, 'PUT': app_document_create_or_update,
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', # OAuth (r'^oauth/', include('indivo.urls.oauth')), (r'^version$', MethodDispatcher({'GET': get_version})), # account-specific URLs (r'^accounts/$', MethodDispatcher({'POST': account_create})), (r'^accounts/search$', MethodDispatcher({'GET': account_search})), (r'^accounts/(?P<account_email>[^/]+)$', MethodDispatcher({'GET': account_info})), (r'^accounts/(?P<account_email>[^/]+)/', include('indivo.urls.account')), # carenet-specific URLs (r'^carenets/(?P<carenet_id>[^/]+)', include('indivo.urls.carenet')), # record-specific URLs (r'^records/$', MethodDispatcher({'POST': record_create})), (r'^records/external/(?P<principal_email>[^/]+)/(?P<external_id>[^/]+)$', MethodDispatcher({'PUT': record_create_ext})), (r'^records/(?P<record_id>[^/]+)', include('indivo.urls.record')), # PHAs (r'^apps/$', MethodDispatcher({'GET': all_phas})), (r'^apps/(?P<pha_email>[^/]+)$',
urlpatterns = patterns( '', (r'^$', record), (r'^/apps/', include('indivo.urls.record_apps')), (r'^/audits/', include('indivo.urls.record_audits')), (r'^/autoshare/', include('indivo.urls.record_autoshare')), (r'^/carenets/', include('indivo.urls.record_carenets')), (r'^/documents/', include('indivo.urls.record_documents')), (r'^/reports/', include('indivo.urls.record_reports')), # ownership ( r'^/owner$', MethodDispatcher({ 'GET': record_get_owner, 'PUT': record_set_owner, # for now, POST compatibility (Ben) 'POST': record_set_owner })), # shares (r'^/shares/$', MethodDispatcher({ 'GET': record_shares, 'POST': record_share_add })), # Deprecated as of 1.0: This isn't RESTful at all # Use the below call instead. (r'^/shares/(?P<other_account_id>[^/]+)/delete$', MethodDispatcher({'POST': record_share_delete})), (r'^/shares/(?P<other_account_id>[^/]+)$', MethodDispatcher({'DELETE': record_share_delete})),
urlpatterns = patterns('', (r'^$', record), (r'^/apps/', include('indivo.urls.record_apps')), (r'^/audits/', include('indivo.urls.record_audits')), (r'^/autoshare/', include('indivo.urls.record_autoshare')), (r'^/carenets/', include('indivo.urls.record_carenets')), (r'^/documents/', include('indivo.urls.record_documents')), (r'^/reports/', include('indivo.urls.record_reports')), # ownership (r'^/owner$', MethodDispatcher({ 'GET' : record_get_owner, 'PUT' : record_set_owner, # for now, POST compatibility (Ben) 'POST' : record_set_owner })), (r'^/sharescompanion/$', MethodDispatcher({ 'GET' : record_shares_companion})), # shares (r'^/shares/$', MethodDispatcher({ 'GET' : record_shares, 'POST' : record_share_add})), # Deprecated as of 1.0: This isn't RESTful at all # Use the below call instead. (r'^/shares/(?P<other_account_id>[^/]+)/delete$', MethodDispatcher({'POST':record_share_delete})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', # reset (r'^reset$', account_reset), # set state (r'^set-state$', MethodDispatcher({'POST': account_set_state})), # update info (r'^info-set$', MethodDispatcher({'POST': account_info_set})), # auth systems (r'^authsystems/$', MethodDispatcher({'POST': account_authsystem_add})), # change the password (r'^authsystems/password/change$', MethodDispatcher({'POST': account_password_change})), # set the password (r'^authsystems/password/set$', MethodDispatcher({'POST': account_password_set})), # set the username (r'^authsystems/password/set-username$', MethodDispatcher({'POST': account_username_set})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', #sharing (r'^(?P<document_id>[^/]+)/nevershare$', MethodDispatcher({ 'PUT': document_set_nevershare, 'DELETE': document_remove_nevershare })), (r'^(?P<document_id>[^/]+)/carenets/$', MethodDispatcher({'GET': document_carenets})), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)$', MethodDispatcher({ 'PUT': carenet_document_placement, 'DELETE': carenet_document_delete })), (r'^(?P<data_model>[^/]+)/all/carenets/(?P<carenet_id>[^/]+)$', MethodDispatcher({ 'PUT': carenet_pha_placement, 'DELETE': carenet_pha_delete })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)/autoshare-revert$', MethodDispatcher({'POST': autoshare_revert})), (r'^$', MethodDispatcher({ 'GET': record_document_list,
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', ## ## Application-Specific Data Storage ## # List of app-specific documents / create a doc (r'^/documents/$', MethodDispatcher({ 'GET': app_document_list, 'POST': app_document_create })), # create app-specific doc by document external ID (r'^/documents/external/(?P<external_id>[^/]+)$', MethodDispatcher({'PUT': app_document_create_or_update_ext})), # One app-specific document # app-specific document replace (r'^/documents/(?P<document_id>[^/]+)$', MethodDispatcher({ 'GET': app_specific_document, 'PUT': app_document_create_or_update, 'DELETE': app_document_delete })),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', (r'^$', MethodDispatcher({'GET':record_phas})), (r'^(?P<pha_email>[^/]+)$', MethodDispatcher({'GET' : record_pha, 'DELETE': pha_record_delete})), # List of app-specific documents / create a doc (r'^(?P<pha_email>[^/]+)/documents/$', MethodDispatcher({ 'GET' : record_app_document_list, 'POST' : record_app_document_create})), # create app-specific doc by document external ID (r'^(?P<pha_email>[^/]+)/documents/external/(?P<external_id>[^/]+)$', MethodDispatcher({ 'POST' : record_app_document_create_or_update_ext, 'PUT' : record_app_document_create_or_update_ext})), # One app-specific document (r'^(?P<pha_email>[^/]+)/documents/(?P<document_id>[^/]+)$', MethodDispatcher({ 'GET': record_app_specific_document, 'DELETE': record_app_document_delete})), # One app-specific document's metadata (r'^(?P<pha_email>[^/]+)/documents/(?P<document_id>[^/]+)/meta$', MethodDispatcher({'GET': record_app_document_meta})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', # forgotten password: Combines a reset and a secret-resend into one call (r'^forgot-password$', MethodDispatcher({'POST': account_forgot_password})), # reset (r'^reset$', MethodDispatcher({'POST': account_reset})), # set state (r'^set-state$', MethodDispatcher({'POST': account_set_state})), # update info (r'^info-set$', MethodDispatcher({'POST': account_info_set})), # auth systems (r'^authsystems/$', MethodDispatcher({'POST': account_authsystem_add})), # change the password (r'^authsystems/password/change$', MethodDispatcher({ 'POST' : account_password_change})), # set the password (r'^authsystems/password/set$', MethodDispatcher({ 'POST' : account_password_set})), # set the username
from django.conf.urls.defaults import * #from oauth.djangoutils import request_token, exchange_token, PARAMS #PARAMS['OAUTH_SERVER'] = OAUTH_SERVER from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', url(r'^request_token$', MethodDispatcher({'POST':request_token}), name='oauth_request_token'), url(r'^access_token$', MethodDispatcher({'POST':exchange_token}), name='oauth_access_token'), url(r'^internal/request_tokens/(?P<reqtoken_id>[^/]+)/info$', MethodDispatcher({'GET':request_token_info}), name='oauth_internal_request_token_info'), # Request Token User Authorization is now handled by the UI, using internal # oauth calls (internal/request_tokens/approve), so oauth/authorize is no longer # part of the userapp-facing API. ## INTERNAL oAuth operations that are not part of the standard public API # session url(r'^internal/session_create$', MethodDispatcher({'POST':session_create}), name='oauth_session_create'),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', # forgotten password: Combines a reset and a secret-resend into one call (r'^forgot-password$', MethodDispatcher({'POST': account_forgot_password}) ), # reset (r'^reset$', MethodDispatcher({'POST': account_reset})), # set state (r'^set-state$', MethodDispatcher({'POST': account_set_state})), # update info (r'^info-set$', MethodDispatcher({'POST': account_info_set})), # get credentials for a connect-authenticated app (r'^apps/(?P<pha_email>[^/]+)/connect_credentials$', MethodDispatcher({'POST': get_connect_credentials})), # User Preferences (SMART) (r'^apps/(?P<pha_email>[^/]+)/preferences$', MethodDispatcher({ 'GET': get_user_preferences, 'PUT': set_user_preferences, 'DELETE': delete_user_preferences,
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', #sharing (r'^(?P<document_id>[^/]+)/nevershare', MethodDispatcher({ 'PUT' : document_set_nevershare, 'DELETE': document_remove_nevershare})), (r'^(?P<document_id>[^/]+)/carenets/$', MethodDispatcher({ 'GET' : document_carenets })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)$', MethodDispatcher({ 'PUT' : carenet_document_placement, 'DELETE' : carenet_document_delete })), (r'^(?P<document_id>[^/]+)/carenets/(?P<carenet_id>[^/]+)/autoshare-revert$', MethodDispatcher({ 'POST' : autoshare_revert })), (r'^$', MethodDispatcher({ 'GET' : record_document_list, 'POST' : document_create, 'DELETE' : documents_delete})), # create by document external ID (r'^external/(?P<pha_email>[^/]+)/(?P<external_id>[^/]+)$', MethodDispatcher({'PUT' : document_create_by_ext_id})), (r'^external/(?P<pha_email>[^/]+)/(?P<external_id>[^/]+)/meta$',
# OAuth (r'^oauth/', include('indivo.urls.oauth')), (r'^version$', get_version), # account-specific URLs (r'^accounts/$', account_create), (r'^accounts/search$', account_search), (r'^accounts/forgot-password$', account_forgot_password), (r'^accounts/(?P<account_email>[^/]+)$', account_info), (r'^accounts/(?P<account_email>[^/]+)/', include('indivo.urls.account')), (r'^carenets/(?P<carenet_id>[^/]+)', include('indivo.urls.carenet')), # create a new record (r'^records/$', MethodDispatcher({'POST': record_create})), # SZ: FIX ME! # create a new record by external ID (r'^records/external/(?P<principal_email>[^/]+)/(?P<external_id>[^/]+)$', MethodDispatcher({ 'PUT' : record_create_ext})), # Records (r'^records/(?P<record_id>[^/]+)', include('indivo.urls.record')), # Current identity (r'^id$', get_id), # PHAs # NOTE: the double-underscore extra parameter __app_specific triggers access-control mechanisms (r'^apps/$', all_phas),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^/record$', carenet_record), (r'^/accounts/$', MethodDispatcher({ 'GET': carenet_account_list, 'POST': carenet_account_create })), (r'^/documents/', include('indivo.urls.carenet_documents')), (r'^/accounts/(?P<account_id>[^/]+)$', MethodDispatcher({'DELETE': carenet_account_delete})), (r'^/apps/$', MethodDispatcher({'GET': carenet_apps_list})), (r'^/apps/(?P<pha_email>[^/]+)$', MethodDispatcher({ 'PUT': carenet_apps_create, 'DELETE': carenet_apps_delete })), (r'^/accounts/(?P<account_id>[^/]+)/permissions$', MethodDispatcher({'GET': carenet_account_permissions})), (r'^/apps/(?P<pha_email>[^/]+)/permissions$', MethodDispatcher({'GET': carenet_app_permissions})), (r'^/reports/minimal/immunizations/$', carenet_immunization_list), (r'^/reports/minimal/allergies/$', carenet_allergy_list), (r'^/reports/minimal/procedures/$', carenet_procedure_list), (r'^/reports/minimal/problems/$', carenet_problem_list), (r'^/reports/minimal/medications/$', carenet_medication_list), (r'^/reports/minimal/equipment/$', carenet_equipment_list), (r'^/reports/minimal/vitals/$', carenet_vitals_list), (r'^/reports/minimal/vitals/(?P<category>[^/]+)$', carenet_vitals_list),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', MethodDispatcher({'GET': record_phas})), (r'^(?P<pha_email>[^/]+)$', MethodDispatcher({ 'GET': record_pha, 'PUT': record_pha_enable, 'DELETE': pha_record_delete })), # List of app-specific documents / create a doc (r'^(?P<pha_email>[^/]+)/documents/$', MethodDispatcher({ 'GET': record_app_document_list, 'POST': record_app_document_create })), # create app-specific doc by document external ID (r'^(?P<pha_email>[^/]+)/documents/external/(?P<external_id>[^/]+)$', MethodDispatcher({ 'POST': record_app_document_create_or_update_ext, 'PUT': record_app_document_create_or_update_ext })), # One app-specific document (r'^(?P<pha_email>[^/]+)/documents/(?P<document_id>[^/]+)$',
urlpatterns = patterns( '', (r'^$', record), (r'^/apps/', include('indivo.urls.record_apps')), (r'^/audits/', include('indivo.urls.record_audits')), (r'^/autoshare/', include('indivo.urls.record_autoshare')), (r'^/carenets/', include('indivo.urls.record_carenets')), (r'^/documents/', include('indivo.urls.record_documents')), (r'^/reports/', include('indivo.urls.record_reports')), # ownership ( r'^/owner$', MethodDispatcher({ 'GET': record_get_owner, 'PUT': record_set_owner, # for now, POST compatibility (Ben) 'POST': record_set_owner })), # shares (r'^/shares/$', MethodDispatcher({ 'GET': record_shares, 'POST': record_share_add })), # Deprecated as of 1.0: This isn't RESTful at all # Use the below call instead. (r'^/shares/(?P<other_account_id>[^/]+)/delete$', MethodDispatcher({'POST': record_share_delete})), (r'^/shares/(?P<other_account_id>[^/]+)$', MethodDispatcher({'DELETE': record_share_delete})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns( '', (r'^$', record_phas), (r'^(?P<pha_email>[^/]+)$', MethodDispatcher({ 'GET': record_pha, 'DELETE': pha_record_delete })), # List of app-specific documents / create a doc (r'^(?P<pha_email>[^/]+)/documents/$', MethodDispatcher({ 'GET': record_app_document_list, 'POST': record_app_document_create })), # create app-specific doc by document external ID (r'^(?P<pha_email>[^/]+)/documents/external/(?P<external_id>[^/]+)$', MethodDispatcher({ 'POST': record_app_document_create_or_update_ext, 'PUT': record_app_document_create_or_update_ext })), # One app-specific document (r'^(?P<pha_email>[^/]+)/documents/(?P<document_id>[^/]+)$', MethodDispatcher({'GET': record_app_specific_document})),
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', (r'^$', MethodDispatcher({ 'GET' : carenet_list, # SZ: Should be PUT but using POST for compatibility 'POST' : carenet_create })) )
from django.conf.urls.defaults import * from indivo.views import * from indivo.lib.utils import MethodDispatcher urlpatterns = patterns('', (r'^bytype/$', MethodDispatcher({ 'GET' : autoshare_list })), (r'^bytype/all$', MethodDispatcher({ 'GET' : autoshare_list_bytype_all })), (r'^carenets/(?P<carenet_id>[^/]+)/bytype/set$', MethodDispatcher({ 'POST' : autoshare_create })), (r'^carenets/(?P<carenet_id>[^/]+)/bytype/unset$', MethodDispatcher({ 'POST' : autoshare_delete })) )