from django.conf.urls import patterns, include, url
from rest_framework import routers
from api.v2 import views

router = routers.DefaultRouter(trailing_slash=False)
router.register(r'tags', views.TagViewSet)
router.register(r'users', views.UserViewSet)
router.register(r'projects', views.ProjectViewSet)
router.register(r'project_instances', views.ProjectInstanceViewSet)
router.register(r'project_volumes', views.ProjectVolumeViewSet)
router.register(r'images', views.ImageViewSet)
router.register(r'providers', views.ProviderViewSet)
router.register(r'identities', views.IdentityViewSet)
router.register(r'quotas', views.QuotaViewSet)
router.register(r'allocations', views.AllocationViewSet)
router.register(r'volumes', views.VolumeViewSet)
router.register(r'instances', views.InstanceViewSet)
router.register(r'provider_types', views.ProviderTypeViewSet)
router.register(r'platform_types', views.PlatformTypeViewSet)
router.register(r'provider_machines', views.ProviderMachineViewSet)
router.register(r'image_bookmarks', views.ImageBookmarkViewSet)
router.register(r'sizes', views.SizeViewSet)

urlpatterns = patterns('',
                       url(r'^', include(router.urls)),
                       )

from django.conf.urls import patterns, include, url
from rest_framework import routers
from api.v2 import views

router = routers.DefaultRouter(trailing_slash=False)
router.register(r'allocations', views.AllocationViewSet)
router.register(r'identities', views.IdentityViewSet)
router.register(r'images', views.ImageViewSet)
router.register(r'image_bookmarks', views.ImageBookmarkViewSet)
router.register(r'instances', views.InstanceViewSet)
router.register(r'platform_types', views.PlatformTypeViewSet)
router.register(r'projects', views.ProjectViewSet)
router.register(r'project_instances', views.ProjectInstanceViewSet)
router.register(r'project_volumes', views.ProjectVolumeViewSet)
router.register(r'providers', views.ProviderViewSet)
router.register(r'provider_machines', views.ProviderMachineViewSet)
router.register(r'provider_types', views.ProviderTypeViewSet)
router.register(r'quotas', views.QuotaViewSet)
router.register(r'sizes', views.SizeViewSet)
router.register(r'tags', views.TagViewSet)
router.register(r'users', views.UserViewSet)
router.register(r'volumes', views.VolumeViewSet)

urlpatterns = patterns('',
                       url(r'^', include(router.urls)),
                       )

sort urls by name