From: Scott Baker Date: Fri, 21 Nov 2014 19:36:19 +0000 (-0800) Subject: get rid of the underscores in slice_deployments and user_deployments in REST API X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=27e699b13e52868501ba10ab107b6fde037b5106;p=plstackapi.git get rid of the underscores in slice_deployments and user_deployments in REST API --- diff --git a/planetstack/apigen/modelgen b/planetstack/apigen/modelgen old mode 100755 new mode 100644 index 8d25615..8a647b1 --- a/planetstack/apigen/modelgen +++ b/planetstack/apigen/modelgen @@ -64,8 +64,8 @@ class GenObj(object): # called. REST_FIXUP = {'networkdeploymentses': 'networkdeployments', 'imagedeploymentses': 'imagedeployments', - 'slicedeploymentses': 'slice_deployments', - 'userdeploymentses': 'user_deployments', + 'slicedeploymentses': 'slicedeployments', + 'userdeploymentses': 'userdeployments', 'sitedeploymentses': 'sitedeployments', 'siteroles': 'site_roles', 'sliceprivileges': 'slice_privileges', diff --git a/planetstack/genapi.py b/planetstack/genapi.py index 8ffc822..5fba0c4 100644 --- a/planetstack/genapi.py +++ b/planetstack/genapi.py @@ -164,9 +164,9 @@ def get_REST_patterns(): url(r'plstackapi/reservations/(?P[a-zA-Z0-9\-]+)/$', ReservationDetail.as_view(), name ='reservation-detail'), # url(r'plstackapi/reservations/!new/$', ReservationNew.as_view(), name ='reservation-new'), - url(r'plstackapi/slice_deployments/$', SliceDeploymentsList.as_view(), name='slicedeployments-list'), - url(r'plstackapi/slice_deployments/(?P[a-zA-Z0-9\-]+)/$', SliceDeploymentsDetail.as_view(), name ='slicedeployments-detail'), -# url(r'plstackapi/slice_deployments/!new/$', SliceDeploymentsNew.as_view(), name ='slicedeployments-new'), + url(r'plstackapi/slicedeployments/$', SliceDeploymentsList.as_view(), name='slicedeployments-list'), + url(r'plstackapi/slicedeployments/(?P[a-zA-Z0-9\-]+)/$', SliceDeploymentsDetail.as_view(), name ='slicedeployments-detail'), +# url(r'plstackapi/slicedeployments/!new/$', SliceDeploymentsNew.as_view(), name ='slicedeployments-new'), url(r'plstackapi/siteprivileges/$', SitePrivilegeList.as_view(), name='siteprivilege-list'), url(r'plstackapi/siteprivileges/(?P[a-zA-Z0-9\-]+)/$', SitePrivilegeDetail.as_view(), name ='siteprivilege-detail'), @@ -176,9 +176,9 @@ def get_REST_patterns(): url(r'plstackapi/planetstacks/(?P[a-zA-Z0-9\-]+)/$', PlanetStackDetail.as_view(), name ='planetstack-detail'), # url(r'plstackapi/planetstacks/!new/$', PlanetStackNew.as_view(), name ='planetstack-new'), - url(r'plstackapi/user_deployments/$', UserDeploymentsList.as_view(), name='userdeployments-list'), - url(r'plstackapi/user_deployments/(?P[a-zA-Z0-9\-]+)/$', UserDeploymentsDetail.as_view(), name ='userdeployments-detail'), -# url(r'plstackapi/user_deployments/!new/$', UserDeploymentsNew.as_view(), name ='userdeployments-new'), + url(r'plstackapi/userdeployments/$', UserDeploymentsList.as_view(), name='userdeployments-list'), + url(r'plstackapi/userdeployments/(?P[a-zA-Z0-9\-]+)/$', UserDeploymentsDetail.as_view(), name ='userdeployments-detail'), +# url(r'plstackapi/userdeployments/!new/$', UserDeploymentsNew.as_view(), name ='userdeployments-new'), url(r'plstackapi/accounts/$', AccountList.as_view(), name='account-list'), url(r'plstackapi/accounts/(?P[a-zA-Z0-9\-]+)/$', AccountDetail.as_view(), name ='account-detail'),