diff options
author | Brinda Santh Muthuramalingam <brindasanth@in.ibm.com> | 2019-11-14 16:01:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-14 16:01:55 +0000 |
commit | 394053fb895c1c59a90e221f57777ebf5d85b27c (patch) | |
tree | 48794a09400f870da2b97b6282c970795be8f6fe /cds-ui/server/src/datasources | |
parent | c5c977f499350b71a23ff7e07042c595bfbfa642 (diff) | |
parent | 43bbe44b1babdcfc91ad47df2b3c6a93e525b6a6 (diff) |
Merge "add API to list blueprints with pagination in loopback server"
Diffstat (limited to 'cds-ui/server/src/datasources')
-rw-r--r-- | cds-ui/server/src/datasources/blueprint.datasource-template.ts | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/cds-ui/server/src/datasources/blueprint.datasource-template.ts b/cds-ui/server/src/datasources/blueprint.datasource-template.ts index b0aaf01eb..914021887 100644 --- a/cds-ui/server/src/datasources/blueprint.datasource-template.ts +++ b/cds-ui/server/src/datasources/blueprint.datasource-template.ts @@ -38,21 +38,36 @@ export default { } }, - { - "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": "$.*" + { + "template": { + "method": "GET", + "url": processorApiConfig.http.url + "/blueprint-model/meta-data/{keyword}", + "headers": { + "accepts": "application/json", + "content-type": "application/json", + "authorization": processorApiConfig.http.authToken }, - "functions": { - "getBlueprintsByKeyword": ["keyword"] + "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 + }, + "responsePath": "$", }, + "functions": { + "getPagedBueprints": ["limit","offset", "sort"], + } + }, ] }; |