diff options
Diffstat (limited to 'windriver/titanium_cloud/swagger/urls.py')
-rw-r--r-- | windriver/titanium_cloud/swagger/urls.py | 16 |
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) |