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)),
                       )

@@ -181,24 +181,139 @@
 r(r'
-tags', views.T
+allocations', views.AllocationViewSet)%0Arouter.register(r'identities', views.IdentityViewSet)%0Arouter.register(r'images', views.Im
 ag
+e
 View
@@ -339,26 +339,160 @@
 r(r'
-users', views.User
+image_bookmarks', views.ImageBookmarkViewSet)%0Arouter.register(r'instances', views.InstanceViewSet)%0Arouter.register(r'platform_types', views.PlatformType
 View
@@ -683,55 +683,8 @@
 et)%0A
-router.register(r'images', views.ImageViewSet)%0A
 rout
@@ -754,187 +754,110 @@
 r(r'
-identities', views.IdentityViewSet)%0Arouter.register(r'quotas', views.QuotaViewSet)%0Arouter.register(r'allocations', views.AllocationViewSet)%0Arouter.register(r'volumes', views.Volum
+provider_machines', views.ProviderMachineViewSet)%0Arouter.register(r'provider_types', views.ProviderTyp
 eVie
@@ -876,32 +876,29 @@
 .register(r'
-instance
+quota
 s', views.In
@@ -891,32 +891,29 @@
 tas', views.
-Instance
+Quota
 ViewSet)%0Arou
@@ -931,281 +931,162 @@
 r(r'
-provider_types', views.ProviderTypeViewSet)%0Arouter.register(r'platform_types', views.PlatformTypeViewSet)%0Arouter.register(r'provider_machines', views.ProviderMachineViewSet)%0Arouter.register(r'image_bookmarks', views.ImageBookmarkViewSet)%0Arouter.register(r'sizes', views.Siz
+sizes', views.SizeViewSet)%0Arouter.register(r'tags', views.TagViewSet)%0Arouter.register(r'users', views.UserViewSet)%0Arouter.register(r'volumes', views.Volum
 eVie

sort urls by name