summaryrefslogtreecommitdiffstats
path: root/docs/api-reference
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-12-14 19:06:59 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-14 19:06:59 +0000
commit611090f7e90d02c3d3712fc2fe3e64198c19b10f (patch)
tree3310d80699c2eff581dfd57d3756904012779785 /docs/api-reference
parentcc4d609141f18b6644f906bfdbbe1f9b4741631c (diff)
parentcc611fc78212ef8c08f2463a366541df6723c8ab (diff)
Merge "CDS API reference add request classes"
Diffstat (limited to 'docs/api-reference')
-rw-r--r--docs/api-reference/media/bp-processor.postman_collection.json173
-rw-r--r--docs/api-reference/media/cds-bp-processor-api-swagger.json23
2 files changed, 183 insertions, 13 deletions
diff --git a/docs/api-reference/media/bp-processor.postman_collection.json b/docs/api-reference/media/bp-processor.postman_collection.json
index f2a9f1437..0e62117b7 100644
--- a/docs/api-reference/media/bp-processor.postman_collection.json
+++ b/docs/api-reference/media/bp-processor.postman_collection.json
@@ -318,6 +318,169 @@
}
},
"url": {
+ "raw": "http://{{host}}:{{port}}/api/v1/blueprint-model/by-name/pnf_netconf/version/1.0.0",
+ "protocol": "http",
+ "host": [
+ "{{host}}"
+ ],
+ "port": "{{port}}",
+ "path": [
+ "api",
+ "v1",
+ "blueprint-model",
+ "by-name",
+ "pnf_netconf",
+ "version",
+ "1.0.0"
+ ]
+ },
+ "description": "Get Meta-Data of a Blueprint Model by its name and version."
+ },
+ "response": [
+ {
+ "name": "CDS Bootstrap",
+ "originalRequest": {
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ },
+ {
+ "key": "",
+ "value": "",
+ "type": "text",
+ "disabled": true
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\r\n\"loadModelType\" : false,\r\n\"loadResourceDictionary\" : true,\r\n\"loadCBA\" : false\r\n}",
+ "options": {
+ "raw": {}
+ }
+ },
+ "url": {
+ "raw": "http://localhost:8081/api/v1/blueprint-model/bootstrap",
+ "protocol": "http",
+ "host": [
+ "localhost"
+ ],
+ "port": "8081",
+ "path": [
+ "api",
+ "v1",
+ "blueprint-model",
+ "bootstrap"
+ ]
+ }
+ },
+ "status": "OK",
+ "code": 200,
+ "_postman_previewlanguage": "json",
+ "header": [
+ {
+ "key": "X-ONAP-RequestID",
+ "value": "b73253b6-d2be-4701-bdb2-31fa66b79a01"
+ },
+ {
+ "key": "X-ONAP-InvocationID",
+ "value": "b1a59296-fcf2-4435-b8de-9a2e9b9f4077"
+ },
+ {
+ "key": "X-ONAP-PartnerName",
+ "value": "cds-controller"
+ },
+ {
+ "key": "Vary",
+ "value": "Origin"
+ },
+ {
+ "key": "Vary",
+ "value": "Access-Control-Request-Method"
+ },
+ {
+ "key": "Vary",
+ "value": "Access-Control-Request-Headers"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Length",
+ "value": "0"
+ },
+ {
+ "key": "Cache-Control",
+ "value": "no-cache, no-store, max-age=0, must-revalidate"
+ },
+ {
+ "key": "Pragma",
+ "value": "no-cache"
+ },
+ {
+ "key": "Expires",
+ "value": "0"
+ },
+ {
+ "key": "X-Content-Type-Options",
+ "value": "nosniff"
+ },
+ {
+ "key": "X-Frame-Options",
+ "value": "DENY"
+ },
+ {
+ "key": "X-XSS-Protection",
+ "value": "1 ; mode=block"
+ },
+ {
+ "key": "Referrer-Policy",
+ "value": "no-referrer"
+ }
+ ],
+ "cookie": [],
+ "body": ""
+ }
+ ]
+ },
+ {
+ "name": "Download a Blueprint Model",
+ "protocolProfileBehavior": {
+ "disabledSystemHeaders": {}
+ },
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "ccsdkapps",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "ccsdkapps",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "disabled": true
+ },
+ {
+ "key": "",
+ "type": "text",
+ "value": "",
+ "disabled": true
+ }
+ ],
+ "url": {
"raw": "http://{{host}}:{{port}}/api/v1/blueprint-model/download/by-name/pnf_netconf/version/1.0.0",
"protocol": "http",
"host": [
@@ -335,7 +498,7 @@
"1.0.0"
]
},
- "description": "Get Meta-Data of a Blueprint Model by its name and version."
+ "description": "Gets the CBA of a blueprint model by its name and version. Response can be saved to a file to download the CBA."
},
"response": [
{
@@ -482,7 +645,7 @@
}
],
"url": {
- "raw": "http://{{host}}:{{port}}/api/v1/blueprint-model/download/416f241d-3ef9-4cb6-8834-956ae4f70b07",
+ "raw": "http://{{host}}:{{port}}/api/v1/blueprint-model/download/44471683-4446-4ed9-8b27-fac6a8f81e5e",
"protocol": "http",
"host": [
"{{host}}"
@@ -493,7 +656,7 @@
"v1",
"blueprint-model",
"download",
- "416f241d-3ef9-4cb6-8834-956ae4f70b07"
+ "44471683-4446-4ed9-8b27-fac6a8f81e5e"
]
},
"description": "Gets the CBA of a blueprint model by its ID. Response can be saved to a file to download the CBA."
@@ -2682,12 +2845,12 @@
],
"variable": [
{
- "id": "86d601d8-fded-49c0-8870-545b57019003",
+ "id": "59f58f5b-ee64-490b-be39-09983d888dd8",
"key": "host",
"value": "localhost"
},
{
- "id": "b53854bd-6fbb-42bb-a001-9b77a3883cf8",
+ "id": "284f1750-2dd3-4fa4-aade-cccd91d53cc7",
"key": "port",
"value": "8081"
}
diff --git a/docs/api-reference/media/cds-bp-processor-api-swagger.json b/docs/api-reference/media/cds-bp-processor-api-swagger.json
index a9f596527..af3ed94e6 100644
--- a/docs/api-reference/media/cds-bp-processor-api-swagger.json
+++ b/docs/api-reference/media/cds-bp-processor-api-swagger.json
@@ -64,7 +64,7 @@
"200" : {
"description" : "OK",
"schema" : {
- "type" : "object"
+ "$ref" : "#/definitions/BlueprintModelSearch"
}
},
"500" : {
@@ -129,7 +129,7 @@
"200" : {
"description" : "OK",
"schema" : {
- "type" : "object"
+ "$ref" : "#/definitions/BlueprintModelSearch"
}
},
"404" : {
@@ -249,7 +249,7 @@
"200" : {
"description" : "OK",
"schema" : {
- "type" : "object"
+ "$ref" : "#/definitions/BlueprintModelSearch"
}
},
"503" : {
@@ -277,7 +277,10 @@
"200" : {
"description" : "successful operation",
"schema" : {
- "type" : "object"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BlueprintModelSearch"
+ }
}
}
}
@@ -440,7 +443,7 @@
"200" : {
"description" : "successful operation",
"schema" : {
- "type" : "object"
+ "$ref" : "#/definitions/BlueprintModelSearch"
}
}
}
@@ -465,7 +468,10 @@
"200" : {
"description" : "successful operation",
"schema" : {
- "type" : "object"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/definitions/BlueprintModelSearch"
+ }
}
}
}
@@ -482,7 +488,8 @@
"parameters" : [ {
"in" : "body",
"name" : "body",
- "required" : false,
+ "description" : "Blueprint and workflow identification",
+ "required" : true,
"schema" : {
"$ref" : "#/definitions/WorkFlowSpecRequest"
}
@@ -548,7 +555,7 @@
"200" : {
"description" : "OK",
"schema" : {
- "type" : "object"
+ "$ref" : "#/definitions/BlueprintModelSearch"
}
},
"404" : {