diff options
Diffstat (limited to 'kilo/kilo/urls.py')
-rw-r--r-- | kilo/kilo/urls.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/kilo/kilo/urls.py b/kilo/kilo/urls.py index 1a561f95..2dfb95a2 100644 --- a/kilo/kilo/urls.py +++ b/kilo/kilo/urls.py @@ -10,11 +10,18 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. from django.conf.urls import include, url -from kilo.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM +from kilo.pub.config.config \ + import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM + +from kilo.requests.views import tenants urlpatterns = [ url(r'^', include('kilo.swagger.urls')), url(r'^', include('kilo.samples.urls')), + url(r'^openoapi/multivim-kilo/v1/(?P<vimid>[0-9a-zA-Z_-]+)/tenants$', + tenants.Tenants.as_view()), + url(r'^openoapi/multivim-kilo/v1/(?P<vimid>[0-9a-zA-Z_-]+)/' + '(?P<tenantid>[0-9a-zA-Z_-]{8,})/', include('kilo.requests.urls')), ] #url(r'^', include('kilo.forward.urls')), @@ -22,4 +29,5 @@ urlpatterns = [ if REG_TO_MSB_WHEN_START: import json from kilo.pub.utils.restcall import req_by_msb - req_by_msb(REG_TO_MSB_REG_URL, "POST", json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) + req_by_msb(REG_TO_MSB_REG_URL, "POST", + json.JSONEncoder().encode(REG_TO_MSB_REG_PARAM)) |