예제 #1
0
 def setUp(self):
     included_urlpatterns = patterns('tests',
         verb_url('GET',     '^test$', 'method_view'),
         verb_url('POST',    '^test$', 'method_view')
     )
     
     self.urlconf = URLConf(patterns('tests',
         verb_url('GET',     '^test$', 'method_view'),
         verb_url('POST',    '^test$', 'method_view'),
         verb_url('PUT',     '^test$', 'method_view'),
         verb_url('DELETE',  '^test$', 'method_view'),
         verb_url('GET',     '^kwarg', 'kwarg_view', {'key': 'get view'}),
         verb_url('POST',    '^kwarg', 'kwarg_view', {'key': 'post view'}),
         url('^include/', include(included_urlpatterns))
     ))
예제 #2
0
# Copyright 2014, CRS4 srl. (http://www.crs4.it/)
# Dual licensed under the MIT or GPL Version 2 licenses.
# See license-GPLv2.txt or license-MIT.txt

from reroute import patterns
from reroute.verbs import verb_url


# MostUser API related urls
urlpatterns = patterns('most.web.medicalrecords.views.simple',
                       (r'^ping/$', 'ping'),
                       (r'^ping/auth/$', 'authenticated_ping')
                       )

urlpatterns += patterns('most.web.medicalrecords.views.patients',
                        verb_url('POST', r'^patients/$', 'create_patient'),
                        verb_url('GET', r'^patients/$', 'get_patients'),
                        verb_url('PUT', r'^patients/(?P<patient_uuid>.*)/$', 'update_patient'),
                        verb_url('GET', r'^patients/(?P<patient_uuid>.*)/$', 'get_patient'),
                        verb_url('DELETE', r'^patients/(?P<patient_uuid>.*)/$', 'delete_patient'),
                        )

urlpatterns += patterns('most.web.medicalrecords.views.ehr',
                        (r'^ehr/status/$', 'get_status'),  # Get Status of pyehr dbservice service

                        verb_url('GET', r'^ehr/(?P<patient_uuid>.*)/records/(?P<record_uuid>.*)/$',
                                 'get_ehr_record_for_patient'), #
                        verb_url('POST', r'^ehr/(?P<patient_uuid>.*)/records/(?P<record_uuid>.*)/$',
                                 'create_ehr_record_for_patient'),
                        verb_url('POST', r'^ehr/(?P<patient_uuid>.*)/records/$', 'create_ehr_record_for_patient'),
                        verb_url('DELETE', r'^ehr/(?P<patient_uuid>.*)/records/(?P<record_uuid>.*)/$',
예제 #3
0
from reroute import handler404, handler500, patterns, url, include
from reroute.verbs import verb_url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$',               'guples.views.home'),

    # Heroku-specific routes
	verb_url('POST',         r'^heroku/resources$',                        'guples.views.heroku_provision'),
	verb_url('DELETE',       r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_deprovision'),
	verb_url('PUT',          r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_planchange'),
	verb_url('GET',          r'^heroku/resources/(?P<id>[0-9].*)$',        'guples.views.heroku_sso_for_resource'),
	verb_url('POST',         r'^sso/login$',                               'guples.views.heroku_sso'),	
	verb_url('GET',          r'^heroku/ssolanding$',                       'guples.views.heroku_sso_landing'),
)
예제 #4
0
from reroute import handler404, handler500, patterns, url, include
from reroute.verbs import verb_url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
    "",
    url(r"^$", "guples.views.home"),
    # Heroku-specific routes
    verb_url("POST", r"^heroku/resources$", "guples.views.heroku_provision"),
    verb_url("DELETE", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_deprovision"),
    verb_url("PUT", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_planchange"),
    verb_url("GET", r"^heroku/resources/(?P<id>[0-9].*)$", "guples.views.heroku_sso_for_resource"),
    verb_url("POST", r"^sso/login$", "guples.views.heroku_sso"),
    verb_url("GET", r"^heroku/ssolanding$", "guples.views.heroku_sso_landing"),
)