From 6ae5484164a944e9ad3211c1cbdc89cfc520688d Mon Sep 17 00:00:00 2001 From: Shaaban Ebrahim Date: Mon, 18 Nov 2019 19:39:26 +0200 Subject: add service for searching in meta data pageable Issue-ID: CCSDK-1770 Signed-off-by: Shaaban Ebrahim Change-Id: Ibf718314f2f818108af3133641ab7be48c334dce --- .../server/src/controllers/blueprint-rest.controller.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cds-ui/server/src/controllers/blueprint-rest.controller.ts') 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': { -- cgit 1.2.3-korg