Update license
[multicloud/framework.git] / multivimbroker / multivimbroker / forwarder / urls.py
1 # Copyright 2017 Wind River Systems, Inc.
2 # Copyright (c) 2017-2018 VMware, Inc.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 from django.conf.urls import url
17 from rest_framework.urlpatterns import format_suffix_patterns
18
19 from multivimbroker.forwarder.views import Extension
20 from multivimbroker.forwarder.views import Forward
21 from multivimbroker.forwarder.views import Identity
22 from multivimbroker.forwarder.views import Registry
23 from multivimbroker.forwarder.views import UnRegistry
24 from multivimbroker.forwarder.views import VIMTypes
25
26
27 urlpatterns = [
28     url(r'^api/multicloud/v0/vim_types$',
29         VIMTypes.as_view()),
30     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)/identity/v3$',
31         Identity.as_view()),
32     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)/identity/v3'
33         r'/auth/tokens$', Identity.as_view()),
34     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)/registry$',
35         Registry.as_view()),
36     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)$',
37         UnRegistry.as_view()),
38     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)/extensions$',
39         Extension.as_view()),
40     url(r'^api/multicloud/v0/(?P<vimid>[0-9a-zA-Z_-]+)',
41         Forward.as_view()),
42 ]
43
44 urlpatterns = format_suffix_patterns(urlpatterns)