new branch
[unfold.git] / sla / urls.py
1 from django.conf.urls import patterns, url, include
2
3 from sla import slicetabsla
4
5 urlpatterns = patterns('',
6         url(r'^api-auth/',
7             include('rest_framework.urls', namespace='rest_framework')),
8         url(r'^testbeds/',
9             slicetabsla.Testbeds.as_view(), name="testbeds"),
10         url(r'^(?P<slicename>[^/]+)/?$',
11             slicetabsla.SLAView.as_view(), name="agreements_summary"),
12         url(r'^agreements/(?P<agreement_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/detail$',
13             slicetabsla.agreement_details, name='agreement_details'),
14         url(r'^agreements/(?P<agreement_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/guarantees/(?P<guarantee_name>\w+)/violations$',
15             slicetabsla.agreement_term_violations, name='agreement_term_violations'),
16         url(r'^agreements/simplecreate/?$',
17             slicetabsla.AgreementSimple.as_view(), name="agreementsimple"),
18 )