diff options
author | dyh <dengyuanhong@chinamobile.com> | 2019-04-23 10:13:17 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2019-04-23 10:38:12 +0800 |
commit | 1956f96041fb81e46a1fb5973da5acb80349c8ba (patch) | |
tree | 286d286da6e92d74a7c551e360cb39ff4b709737 /genericparser/packages | |
parent | a807a3b6f954d32c6352fa68ce0feed5ffbdf2bf (diff) |
change the endpoint of REST APIs
Change-Id: I039c684d245f6ac6e9899512635cbbfcfee1e1e0
Issue-ID: MODELING-158
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'genericparser/packages')
-rw-r--r-- | genericparser/packages/urls.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/genericparser/packages/urls.py b/genericparser/packages/urls.py index bf2eb11..49199ac 100644 --- a/genericparser/packages/urls.py +++ b/genericparser/packages/urls.py @@ -25,10 +25,10 @@ from genericparser.packages.views.health_check_views import HealthCheckView urlpatterns = [ # Sync package from SDC - url(r'^api/genericparser/v1/nspackages$', catalog_views.nspackages_rc, name='nspackages_rc'), - url(r'^api/genericparser/v1/nspackages/(?P<csarId>[0-9a-zA-Z\-\_]+)$', catalog_views.ns_rd_csar, name='nspackage_rd'), - url(r'^api/genericparser/v1/vnfpackages$', catalog_views.nfpackages_rc, name='nfpackages_rc'), - url(r'^api/genericparser/v1/vnfpackages/(?P<csarId>[0-9a-zA-Z\-\_]+)$', catalog_views.nf_rd_csar, name='nfpackage_rd'), + url(r'^api/parser/v1/nspackages$', catalog_views.nspackages_rc, name='nspackages_rc'), + url(r'^api/parser/v1/nspackages/(?P<csarId>[0-9a-zA-Z\-\_]+)$', catalog_views.ns_rd_csar, name='nspackage_rd'), + url(r'^api/parser/v1/vnfpackages$', catalog_views.nfpackages_rc, name='nfpackages_rc'), + url(r'^api/parser/v1/vnfpackages/(?P<csarId>[0-9a-zA-Z\-\_]+)$', catalog_views.nf_rd_csar, name='nfpackage_rd'), url(r'^api/parser/v1/service_packages$', catalog_views.servicepackages_rc, name='servicepackages_rc'), url(r'^api/parser/v1/service_packages/(?P<csarId>[0-9a-zA-Z\-\_]+)$', catalog_views.service_rd_csar, name='servicepackage_rd'), @@ -37,9 +37,6 @@ urlpatterns = [ url(r'^api/parser/v1/parsernsd$', catalog_views.ns_model_parser, name='nsmodelparser_rc'), url(r'^api/parser/v1/parservnfd$', catalog_views.vnf_model_parser, name='vnfmodelparser_rc'), url(r'^api/parser/v1/parserpnfd$', pnf_descriptor_views.pnf_model_parser, name='pnfmodelparser_rc'), - url(r'^api/genericparser/v1/parsernsd$', catalog_views.ns_model_parser, name='nsmodelparser_rc'), - url(r'^api/genericparser/v1/parservnfd$', catalog_views.vnf_model_parser, name='vnfmodelparser_rc'), - url(r'^api/genericparser/v1/parserpnfd$', pnf_descriptor_views.pnf_model_parser, name='pnfmodelparser_rc'), # ETSI SOL005 NSD API url(r'^api/nsd/v1/ns_descriptors$', ns_descriptor_views.ns_descriptors_rc, name='ns_descriptors_rc'), @@ -71,6 +68,5 @@ urlpatterns = [ # health check url(r'^api/vnfpkgm/v1/health_check$', HealthCheckView.as_view()), url(r'^api/nsd/v1/health_check$', HealthCheckView.as_view()), - url(r'^api/genericparser/v1/health_check$', HealthCheckView.as_view()), url(r'^api/parser/v1/health_check$', HealthCheckView.as_view()), ] |