summaryrefslogtreecommitdiffstats
path: root/vio/pub/vim/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'vio/pub/vim/urls.py')
-rw-r--r--vio/pub/vim/urls.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/vio/pub/vim/urls.py b/vio/pub/vim/urls.py
new file mode 100644
index 0000000..b47ffe9
--- /dev/null
+++ b/vio/pub/vim/urls.py
@@ -0,0 +1,31 @@
+# Copyright 2016 ZTE Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+from django.conf.urls import patterns, url
+from rest_framework.urlpatterns import format_suffix_patterns
+
+from vio.pub.vim.views import SwaggerJsonView
+from vio.pub.vim.views import CreateListImagesView
+from vio.pub.vim.views import GetDeleteImageView
+from vio.pub.vim.views import ListTenantsView
+
+urlpatterns = patterns('',
+ url(r'^openoapi/multivim-vio/v1/(?P<vimid>[0-9a-zA-Z_-]+)/images$', CreateListImagesView.as_view()),
+ url(r'^openoapi/multivim-vio/v1/(?P<vimid>[0-9a-zA-Z_-]+)/images/(?P<image_id>[0-9a-zA-Z_-]+)$',
+ GetDeleteImageView.as_view()),
+ url(r'^openoapi/multivim-vio/v1/swagger.json$', SwaggerJsonView.as_view()),
+
+ url(r'^openoapi/multivim-vio/v1/(?P<vimid>[0-9a-zA-Z_-]+)/tenants$', ListTenantsView.as_view()),
+ )
+
+urlpatterns = format_suffix_patterns(urlpatterns)