Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 1 | from django.conf.urls import patterns, include, url |
| 2 | |
| 3 | # Uncomment the next two lines to enable the admin: |
| 4 | from django.contrib import admin |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 5 | from plstackapi.planetstack.views.roles import RoleListCreate |
| 6 | from plstackapi.planetstack.views.api_root import api_root |
Tony Mack | 0e17ee2 | 2013-04-06 20:04:02 -0400 | [diff] [blame] | 7 | from plstackapi.planetstack.models import Site |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 8 | from rest_framework import generics |
| 9 | |
| 10 | admin.autodiscover() |
| 11 | |
| 12 | urlpatterns = 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 Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 24 | |
Tony Mack | 5e05270 | 2013-04-07 23:42:18 -0400 | [diff] [blame] | 25 | url(r'^plstackapi/roles$', RoleListCreate.as_view(), name='role-list'), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 26 | |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 27 | #url(r'^plstackapi/sites/$', views.SiteList.as_view(), name='site-list'), |
| 28 | #url(r'^plstackapi/sites/(?P<pk>[0-9]+)/$', views.SiteDetail.as_view(), name='site-detail'), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 29 | |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 30 | #url(r'^plstackapi/slices/$', views.SliceList.as_view(), name='slice-list'), |
| 31 | #url(r'^plstackapi/slices/(?P<pk>[0-9]+)/$', views.SliceDetail.as_view(), name='slice-detail'), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 32 | |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 33 | #url(r'^plstackapi/slivers/$', views.SliverList.as_view()), |
| 34 | #url(r'^plstackapi/slivers/(?P<pk>[0-9]+)/$', views.SliverDetail.as_view()), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 35 | |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 36 | #url(r'^plstackapi/nodes/$', views.NodeList.as_view(), name='node-list'), |
| 37 | #url(r'^plstackapi/nodes/(?P<pk>[0-9]+)/$', views.NodeDetail.as_view(), name='node-detail'), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 38 | |
Tony Mack | 70dce1a | 2013-04-07 20:22:37 -0400 | [diff] [blame] | 39 | #url(r'^plstackapi/deploymentnetworks/$', views.DeploymentNetworkList.as_view(), name='deploymentnetwork-list'), |
| 40 | #url(r'^plstackapi/deploymentnetworks/(?P<pk>[0-9]+)/$', views.DeploymentNetworkDetail.as_view(), name='deploymentnetwork-detail'), |
| 41 | |
| 42 | #url(r'^plstackapi/sitedeploymentnetworks/$', views.SiteDeploymentNetworkList.as_view(), name='sitedeploymentnetwork-list'), |
| 43 | #url(r'^plstackapi/sitedeploymentnetworks/(?P<pk>[0-9]+)/$', views.SiteDeploymentNetworkDetail.as_view(), name='sitedeploymentnetwork-detail'), |
Tony Mack | 7130ac3 | 2013-03-22 21:58:00 -0400 | [diff] [blame] | 44 | |
| 45 | |
| 46 | #Adding in rest_framework urls |
| 47 | url(r'^plstackapi/', include('rest_framework.urls', namespace='rest_framework')), |
| 48 | |
| 49 | ) |