summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/swagger/urls.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-09-03 08:46:12 +0000
committerBin Yang <bin.yang@windriver.com>2018-09-03 08:46:12 +0000
commit0ac4f904fae7793a3909f6db34ad9b3c35a08c12 (patch)
treeac9239304a11abd8429f4f6e36ef407b51d012f5 /windriver/titanium_cloud/swagger/urls.py
parent1a4ae5657da11a59bd5cbde5240450f5db69e379 (diff)
Add new namespace to workaround ISTIO hostname
ISTIO restrains the usage of _ in hostname Issue-ID: MULTICLOUD-335 Change-Id: I54c712aea1a95c6aaac7d50c3b07472730608503 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/swagger/urls.py')
-rw-r--r--windriver/titanium_cloud/swagger/urls.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/windriver/titanium_cloud/swagger/urls.py b/windriver/titanium_cloud/swagger/urls.py
index 723777dc..38573d58 100644
--- a/windriver/titanium_cloud/swagger/urls.py
+++ b/windriver/titanium_cloud/swagger/urls.py
@@ -15,10 +15,24 @@
from django.conf.urls import patterns, url
from rest_framework.urlpatterns import format_suffix_patterns
+from titanium_cloud.swagger.views import SwaggerJsonViewDepreciated
+from titanium_cloud.swagger.views import APIv1SwaggerJsonViewDepreciated
from titanium_cloud.swagger.views import SwaggerJsonView
+from titanium_cloud.swagger.views import APIv1SwaggerJsonView
urlpatterns = [
- url(r'^api/multicloud-titanium_cloud/v0/swagger.json$', SwaggerJsonView.as_view()),
+ # API v0, depreciated
+ url(r'^api/multicloud-titanium_cloud/v0/swagger.json$', SwaggerJsonViewDepreciated.as_view()),
+
+ # API v1, depreciated
+ url(r'^api/multicloud-titanium_cloud/v1/swagger.json$', APIv1SwaggerJsonViewDepreciated.as_view()),
+
+ # API v0, new namespace: MULTICLOUD-335
+ url(r'^api/multicloud-titaniumcloud/v0/swagger.json$', SwaggerJsonView.as_view()),
+
+ # API v1, new namespace: MULTICLOUD-335
+ url(r'^api/multicloud-titaniumcloud/v1/swagger.json$', APIv1SwaggerJsonView.as_view()),
+
]
urlpatterns = format_suffix_patterns(urlpatterns)