diff options
author | Brinda Santh Muthuramalingam <brindasanth@in.ibm.com> | 2019-11-19 14:34:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-19 14:34:55 +0000 |
commit | 1337eccc2be949d860f3c5b1f0148c061c3c669b (patch) | |
tree | ee788435bdbb5234711982d85b8e354105b48636 /cds-ui/server/src/controllers | |
parent | c38f351751334addb0bdb74f90344aa54cc23695 (diff) | |
parent | 6ae5484164a944e9ad3211c1cbdc89cfc520688d (diff) |
Merge "add service for searching in meta data pageable"
Diffstat (limited to 'cds-ui/server/src/controllers')
-rw-r--r-- | cds-ui/server/src/controllers/blueprint-rest.controller.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cds-ui/server/src/controllers/blueprint-rest.controller.ts b/cds-ui/server/src/controllers/blueprint-rest.controller.ts index 49ecb9df1..1a8de6b47 100644 --- a/cds-ui/server/src/controllers/blueprint-rest.controller.ts +++ b/cds-ui/server/src/controllers/blueprint-rest.controller.ts @@ -84,6 +84,22 @@ export class BlueprintRestController { return await this.bpservice.getPagedBueprints(limit, offset, sort); } + @get('/controllerblueprint/metadata/paged/{keyword}', { + responses: { + '200': { + description: 'Blueprint model instance with pagination', + content: { 'application/json': { schema: { 'x-ts-type': Blueprint } } }, + }, + }, + }) + async getMetaDataPagedBlueprints( + @param.path.string('keyword') keyword: string, + @param.query.number('limit') limit: number, + @param.query.number('offset') offset: number, + @param.query.string('sort') sort: string) { + return await this.bpservice.getMetaDataPagedBlueprints(limit, offset, sort,keyword); + } + @get('/controllerblueprint/meta-data/{keyword}', { responses: { '200': { |