1 # Copyright (c) 2018 Amdocs
2 # Copyright (c) 2018 Amdocs
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:
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 from django.conf.urls import url
15 from rest_framework.urlpatterns import format_suffix_patterns
17 from azure.swagger.views.swagger_json import SwaggerJsonView
21 from azure.swagger.views.registry.views import Registry
22 from azure.swagger.views.registry.views import UnRegistry
27 url(r'^api/multicloud-azure/v0/swagger.json$', SwaggerJsonView.as_view()),
30 url(r'^api/multicloud-azure/v0/(?P<vimid>[0-9a-z-A-Z\-\_]+)/registry$',
32 url(r'^api/multicloud-azure/v0/(?P<vimid>[0-9a-z-A-Z\-\_]+)$',
33 UnRegistry.as_view()),
37 urlpatterns = format_suffix_patterns(urlpatterns)