aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/datasources
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-12-09 15:48:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-09 15:48:02 +0000
commita3247099971acd800a753cdfee51f84ec7679a78 (patch)
tree60f89fe58d182ca2100c165d264962a061e42d02 /cds-ui/server/src/datasources
parent8c9d040846d93a99c88f6b7afba2ede1327bfa39 (diff)
parentcc3ce703bcfba0bdded60cadc863c6e9c7e42543 (diff)
Merge "Creating findOneBluePrintModel (configuration)"
Diffstat (limited to 'cds-ui/server/src/datasources')
-rw-r--r--cds-ui/server/src/datasources/blueprint.datasource-template.ts81
1 files changed, 49 insertions, 32 deletions
diff --git a/cds-ui/server/src/datasources/blueprint.datasource-template.ts b/cds-ui/server/src/datasources/blueprint.datasource-template.ts
index a7cea1d4a..d51d1ba7b 100644
--- a/cds-ui/server/src/datasources/blueprint.datasource-template.ts
+++ b/cds-ui/server/src/datasources/blueprint.datasource-template.ts
@@ -21,11 +21,10 @@ export default {
"getAllblueprints": []
}
- },
- {
+ }, {
"template": {
"method": "GET",
- "url": processorApiConfig.http.url + "/blueprint-model/search/{tags}",
+ "url": processorApiConfig.http.url + "/blueprint-model/{id}",
"headers": {
"accepts": "application/json",
"content-type": "application/json",
@@ -34,41 +33,58 @@ export default {
"responsePath": "$.*"
},
"functions": {
- "getByTags": ["tags"]
+ "getOneBluePrint": ["id"]
}
},
- {
- "template": {
- "method": "GET",
- "url": processorApiConfig.http.url + "/blueprint-model/meta-data/{keyword}",
- "headers": {
- "accepts": "application/json",
- "content-type": "application/json",
- "authorization": processorApiConfig.http.authToken
+
+ {
+ "template": {
+ "method": "GET",
+ "url": processorApiConfig.http.url + "/blueprint-model/search/{tags}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
},
- "responsePath": "$.*"
+ "functions": {
+ "getByTags": ["tags"]
+
+ }
},
- "functions": {
- "getBlueprintsByKeyword": ["keyword"]
+ {
+ "template": {
+ "method": "GET",
+ "url": processorApiConfig.http.url + "/blueprint-model/meta-data/{keyword}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "getBlueprintsByKeyword": ["keyword"]
- }
- },
- {
- "template": {
- "method": "GET",
- "url": processorApiConfig.http.url + "/blueprint-model/paged?limit={limit}&offset={offset}&sort={sort}",
- "headers": {
- "accepts": "application/json",
- "content-type": "application/json",
- "authorization": processorApiConfig.http.authToken
+ }
+ },
+ {
+ "template": {
+ "method": "GET",
+ "url": processorApiConfig.http.url + "/blueprint-model/paged?limit={limit}&offset={offset}&sort={sort}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$",
},
- "responsePath": "$",
+ "functions": {
+ "getPagedBueprints": ["limit", "offset", "sort"],
+ }
},
- "functions": {
- "getPagedBueprints": ["limit","offset", "sort"],
- }
- },
{
"template": {
"method": "GET",
@@ -81,8 +97,9 @@ export default {
"responsePath": "$",
},
"functions": {
- "getMetaDataPagedBlueprints": ["limit","offset", "sort","keyword"],
+ "getMetaDataPagedBlueprints": ["limit", "offset", "sort", "keyword"],
}
},
-]
+ ]
+
};