summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-25 13:25:35 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-09-25 13:25:52 +0800
commit3b4b3739a45d46c1dc1d35eace605df6fc45060d (patch)
tree8cd16b44c4d5635d88f13b13486a9d8885f80ae9 /usecaseui-portal/src
parent268f61f7b41c71c802477614edae2e22f375826c (diff)
feat: fix the interface of the onboard page and add json data
Change-Id: Ie39a134703f2e3d48bba1a271d6d74b40a3eda72 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/mock/json/POST_uui-lcm_create.json44
-rw-r--r--usecaseui-portal/src/app/mock/json/POST_uui-lcm_ns-packages.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/POST_uui-lcm_vf-packages.json5
-rw-r--r--usecaseui-portal/src/app/mock/routes.js5
4 files changed, 57 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/mock/json/POST_uui-lcm_create.json b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_create.json
new file mode 100644
index 00000000..65291751
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_create.json
@@ -0,0 +1,44 @@
+{
+ "id": "001",
+ "nsdId": "string",
+ "nsdName": "string",
+ "nsdVersion": "string",
+ "nsdDesigner": "string",
+ "nsdInvariantId": "string",
+ "vnfPkgIds": [
+ "string"
+ ],
+ "pnfdInfoIds": [
+ "string"
+ ],
+ "nestedNsdInfoIds": [
+ "string"
+ ],
+ "nsdOnboardingState": "CREATED",
+ "onboardingFailureDetails": {
+ "type": "string",
+ "title": 0,
+ "detail": "string",
+ "instance": "string",
+ "additional_attributes": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ }
+ },
+ "nsdOperationalState": "ENABLED",
+ "nsdUsageState": "IN_USE",
+ "userDefinedData": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ },
+ "_links": {
+ "self": {
+ "href": "string"
+ },
+ "nsd_content": {
+ "href": "string"
+ }
+ }
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/POST_uui-lcm_ns-packages.json b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_ns-packages.json
new file mode 100644
index 00000000..2b185d34
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_ns-packages.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "onboard ns sdc successfully",
+ "errorCode": "0"
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/POST_uui-lcm_vf-packages.json b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_vf-packages.json
new file mode 100644
index 00000000..4379a94c
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/POST_uui-lcm_vf-packages.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "onboard vnf sdc successfully",
+ "errorCode": "0"
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/routes.js b/usecaseui-portal/src/app/mock/routes.js
index c5eeb294..093f847b 100644
--- a/usecaseui-portal/src/app/mock/routes.js
+++ b/usecaseui-portal/src/app/mock/routes.js
@@ -87,8 +87,9 @@ module.exports =
"/DELETE/uui-lcm/deleteNsdPackage?nsdInfoId:id": "/DELETE_uui-lcm_deleteNsdPackage",
"/DELETE/uui-lcm/deleteVnfPackage?vnfPkgId:id": "/DELETE_uui-lcm_deleteVnfPackage",
"/DELETE/uui-lcm/deletePnfPackage?pnfdInfoId:id": "/DELETE_uui-lcm_deletePnfPackage",
- "/POST/uui-lcm/ns-packages": "/uui-lcm/ns-packages",
- "/POST/uui-lcm/vf-packages": "/uui-lcm/vf-packages",
+ "/POST/uui-lcm/ns-packages": "/POST_uui-lcm_ns-packages",
+ "/POST/uui-lcm/vf-packages": "/POST_uui-lcm_vf-packages",
+ "/POST/uui-lcm/:jsonData": "/POST_uui-lcm_create",
///////<-------------general interface--------->/////
"/api/*": "/$1",