summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-10-08 11:00:01 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-10-08 11:00:16 +0800
commit8707107f01cafcb77c898333ec20fa7b263c7fe3 (patch)
tree157c564198c72401a57c29502bd56e43ade29dfc /usecaseui-portal/src/app
parent03faffe8da4c35f2807334489ba80eb562890d68 (diff)
feat:optimize api url and mock json of service-list page
Change-Id: I22cfa697dd4b1d4494bc7184a4163c7da013f48e Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r--usecaseui-portal/src/app/core/services/serviceList.service.ts2
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_listNsTemplates.json67
2 files changed, 68 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/core/services/serviceList.service.ts b/usecaseui-portal/src/app/core/services/serviceList.service.ts
index de3722c1..bde2c253 100644
--- a/usecaseui-portal/src/app/core/services/serviceList.service.ts
+++ b/usecaseui-portal/src/app/core/services/serviceList.service.ts
@@ -72,7 +72,7 @@ export class ServiceListService {
// Get all template types
getAllServiceTemplates(type) {
if (type == "Network Service") {
- let nsUrl = this.url.serviceTemplates.replace("service-templates", "listNsTemplates").replace("serviceTemplates2", "serviceTemplates-ns");
+ let nsUrl = this.url.serviceTemplates.replace("service-templates", "listNsTemplates");
console.log(nsUrl);
return this.http.get<any>(nsUrl);
}
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_listNsTemplates.json b/usecaseui-portal/src/app/mock/json/uui-lcm_listNsTemplates.json
new file mode 100644
index 00000000..0f5e834d
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_listNsTemplates.json
@@ -0,0 +1,67 @@
+[
+ {
+ "csarId":"cab8eb0f-9a89-4f54-ba3d-d76d4b829f52",
+ "packageInfo":{
+ "nsdInvariantId":null,
+ "csarName":null,
+ "nsdProvider":null,
+ "nsdId":null,
+ "nsPackageId":"cab8eb0f-9a89-4f54-ba3d-d76d4b829f52",
+ "downloadUrl":"http://msb-iag:8806/static/catalog/cab8eb0f-9a89-4f54-ba3d-d76d4b829f52/None",
+ "nsdModel":null,
+ "nsdVersion":null
+ }
+ },
+ {
+ "csarId":"d0a6bd37-10dc-4e6f-8153-2cc23be27c81",
+ "packageInfo":{
+ "nsdInvariantId":null,
+ "csarName":null,
+ "nsdProvider":null,
+ "nsdId":null,
+ "nsPackageId":"d0a6bd37-10dc-4e6f-8153-2cc23be27c81",
+ "downloadUrl":"http://msb-iag:8806/static/catalog/d0a6bd37-10dc-4e6f-8153-2cc23be27c81/None",
+ "nsdModel":null,
+ "nsdVersion":null
+ }
+ },
+ {
+ "csarId":"d5d678dc-80ef-461e-8630-d105f43b0a18",
+ "packageInfo":{
+ "nsdInvariantId":"c5ea12d4-1ca6-48d0-9302-a3962c15b536",
+ "csarName":"/service/vfc/nfvo/catalog/static/catalog/d5d678dc-80ef-461e-8630-d105f43b0a18/ns-vsn.csar",
+ "nsdProvider":"ONAP",
+ "nsdId":"2c1d41de-40bd-4580-a834-115df4bbcafd",
+ "nsPackageId":"d5d678dc-80ef-461e-8630-d105f43b0a18",
+ "downloadUrl":"http://msb-iag:8806/static/catalog/d5d678dc-80ef-461e-8630-d105f43b0a18//service/vfc/nfvo/catalog/static/catalog/d5d678dc-80ef-461e-8630-d105f43b0a18/ns-vsn.csar",
+ "nsdModel":".....",
+ "nsdVersion":"1.0.0"
+ }
+ },
+ {
+ "csarId":"e53586ef-f30f-4824-a319-c4070a559341",
+ "packageInfo":{
+ "nsdInvariantId":null,
+ "csarName":null,
+ "nsdProvider":null,
+ "nsdId":null,
+ "nsPackageId":"e53586ef-f30f-4824-a319-c4070a559341",
+ "downloadUrl":"http://msb-iag:8806/static/catalog/e53586ef-f30f-4824-a319-c4070a559341/None",
+ "nsdModel":null,
+ "nsdVersion":null
+ }
+ },
+ {
+ "csarId":"ecb2b6e4-435d-453c-b280-850cf5c2f96a",
+ "packageInfo":{
+ "nsdInvariantId":null,
+ "csarName":null,
+ "nsdProvider":null,
+ "nsdId":null,
+ "nsPackageId":"ecb2b6e4-435d-453c-b280-850cf5c2f96a",
+ "downloadUrl":"http://msb-iag:8806/static/catalog/ecb2b6e4-435d-453c-b280-850cf5c2f96a/None",
+ "nsdModel":null,
+ "nsdVersion":null
+ }
+ }
+] \ No newline at end of file