From cc3ce703bcfba0bdded60cadc863c6e9c7e42543 Mon Sep 17 00:00:00 2001 From: Shaaban Ebrahim Date: Tue, 26 Nov 2019 08:38:53 +0200 Subject: Creating findOneBluePrintModel (configuration) Issue-ID: CCSDK-1770 Signed-off-by: Shaaban Ebrahim Change-Id: I61a947533a1b61138d004a22c5a796d09ab2c8d9 --- .../datasources/blueprint.datasource-template.ts | 81 +++++++++++++--------- 1 file changed, 49 insertions(+), 32 deletions(-) (limited to 'cds-ui/server/src/datasources') 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"], } }, -] + ] + }; -- cgit 1.2.3-korg