From 6ec1bc8a6a2fea2795a0a923514aea3e2d4d590b Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Tue, 14 Aug 2018 08:17:25 +0000 Subject: API upgrading for identity proxy Change-Id: I793dfc79d4a04da3b0b3fe19ed1b3076a5744106 Issue-ID: MULTICLOUD-297 Signed-off-by: Bin Yang --- windriver/titanium_cloud/proxy/urlsV1.py | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 windriver/titanium_cloud/proxy/urlsV1.py (limited to 'windriver/titanium_cloud/proxy/urlsV1.py') diff --git a/windriver/titanium_cloud/proxy/urlsV1.py b/windriver/titanium_cloud/proxy/urlsV1.py new file mode 100644 index 00000000..238d5278 --- /dev/null +++ b/windriver/titanium_cloud/proxy/urlsV1.py @@ -0,0 +1,41 @@ +# Copyright (c) 2017-2018 Wind River Systems, Inc. +# +# 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 url +from rest_framework.urlpatterns import format_suffix_patterns + +from titanium_cloud.proxy.views import identityV3 +#from titanium_cloud.proxy.views import services +#from newton_base.proxy import dnsaasdelegate + +urlpatterns = [ + # url(r'^identity/v2)$', + # identityV2.Tokens.as_view()), + url(r'^identity/v3/auth/tokens/?$', + identityV3.APIv1Tokens.as_view()), + url(r'^identity/v3/?$', + identityV3.APIv1Tokens.as_view()), + url(r'^identity/v2.0/?$', + identityV3.APIv1TokensV2.as_view()), + url(r'^identity/v2.0/tokens/?$', + identityV3.APIv1TokensV2.as_view()), +# url(r'^identity/v2.0/tenants/?$', +# services.APIv1GetTenants.as_view()), +# url(r'dns-delegate/(?P[0-9a-zA-Z./_-]*)$', +# dnsaasdelegate.APIv1DnsaasDelegate.as_view()), +# url(r'^(?P[0-9a-zA-Z_-]{,18})/(?P[0-9a-zA-Z./_-]*)$', +# services.APIv1Services.as_view()), +] + +urlpatterns = format_suffix_patterns(urlpatterns) -- cgit 1.2.3-korg