blob: 2f7745e351da78b9e63770fb3461b7309d1eba33 [file] [log] [blame]
Tony Mack7130ac32013-03-22 21:58:00 -04001from django.conf.urls import patterns, include, url
2
3# Uncomment the next two lines to enable the admin:
4from django.contrib import admin
Tony Mackce61bd72013-04-08 20:37:12 -04005from plstackapi.planetstack.views.roles import RoleListCreate, RoleRetrieveUpdateDestroy
Tony Mack70dce1a2013-04-07 20:22:37 -04006from plstackapi.planetstack.views.api_root import api_root
Tony Mack0e17ee22013-04-06 20:04:02 -04007from plstackapi.planetstack.models import Site
Tony Mack7130ac32013-03-22 21:58:00 -04008from rest_framework import generics
9
10admin.autodiscover()
11
12urlpatterns = patterns('',
13 # Examples:
14 # url(r'^$', 'planetstack.views.home', name='home'),
15 # url(r'^planetstack/', include('planetstack.foo.urls')),
16
17 # Uncomment the admin/doc line below to enable admin documentation:
18 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
19
20 # Uncomment the next line to enable the admin:
21 url(r'^admin/', include(admin.site.urls)),
22
23 url(r'^plstackapi/$', api_root),
Tony Mack70dce1a2013-04-07 20:22:37 -040024
Tony Mack5e052702013-04-07 23:42:18 -040025 url(r'^plstackapi/roles$', RoleListCreate.as_view(), name='role-list'),
Tony Mackce61bd72013-04-08 20:37:12 -040026 url(r'^plstackapi/roles/(?P<pk>[0-9]+)/$', RoleRetrieveUpdateDestroy.as_view(), name='role-detail'),
Tony Mack7130ac32013-03-22 21:58:00 -040027
Tony Mack70dce1a2013-04-07 20:22:37 -040028 #url(r'^plstackapi/sites/$', views.SiteList.as_view(), name='site-list'),
29 #url(r'^plstackapi/sites/(?P<pk>[0-9]+)/$', views.SiteDetail.as_view(), name='site-detail'),
Tony Mack7130ac32013-03-22 21:58:00 -040030
Tony Mack70dce1a2013-04-07 20:22:37 -040031 #url(r'^plstackapi/slices/$', views.SliceList.as_view(), name='slice-list'),
32 #url(r'^plstackapi/slices/(?P<pk>[0-9]+)/$', views.SliceDetail.as_view(), name='slice-detail'),
Tony Mack7130ac32013-03-22 21:58:00 -040033
Tony Mack70dce1a2013-04-07 20:22:37 -040034 #url(r'^plstackapi/slivers/$', views.SliverList.as_view()),
35 #url(r'^plstackapi/slivers/(?P<pk>[0-9]+)/$', views.SliverDetail.as_view()),
Tony Mack7130ac32013-03-22 21:58:00 -040036
Tony Mack70dce1a2013-04-07 20:22:37 -040037 #url(r'^plstackapi/nodes/$', views.NodeList.as_view(), name='node-list'),
38 #url(r'^plstackapi/nodes/(?P<pk>[0-9]+)/$', views.NodeDetail.as_view(), name='node-detail'),
Tony Mack7130ac32013-03-22 21:58:00 -040039
Tony Mack70dce1a2013-04-07 20:22:37 -040040 #url(r'^plstackapi/deploymentnetworks/$', views.DeploymentNetworkList.as_view(), name='deploymentnetwork-list'),
41 #url(r'^plstackapi/deploymentnetworks/(?P<pk>[0-9]+)/$', views.DeploymentNetworkDetail.as_view(), name='deploymentnetwork-detail'),
42
43 #url(r'^plstackapi/sitedeploymentnetworks/$', views.SiteDeploymentNetworkList.as_view(), name='sitedeploymentnetwork-list'),
44 #url(r'^plstackapi/sitedeploymentnetworks/(?P<pk>[0-9]+)/$', views.SiteDeploymentNetworkDetail.as_view(), name='sitedeploymentnetwork-detail'),
Tony Mack7130ac32013-03-22 21:58:00 -040045
46
47 #Adding in rest_framework urls
48 url(r'^plstackapi/', include('rest_framework.urls', namespace='rest_framework')),
49
50)