summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/datasources/blueprint.datasource-template.ts
diff options
context:
space:
mode:
authorShaaban Ebrahim <shaaban.altanany@gmail.com>2019-11-26 08:38:53 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2019-12-04 10:19:14 +0200
commitcc3ce703bcfba0bdded60cadc863c6e9c7e42543 (patch)
tree48b84db39482178d581fa169f7ff43766cfe4ecb /cds-ui/server/src/datasources/blueprint.datasource-template.ts
parentadbbdf4f899833229f7244af91e4deb379a3a942 (diff)
Creating findOneBluePrintModel (configuration)
Issue-ID: CCSDK-1770 Signed-off-by: Shaaban Ebrahim <shaaban.eltanany.ext@orange.com> Change-Id: I61a947533a1b61138d004a22c5a796d09ab2c8d9
Diffstat (limited to 'cds-ui/server/src/datasources/blueprint.datasource-template.ts')
-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"],
}
},
-]
+ ]
+
};