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 --- cds-ui/server/src/controllers/blueprint-rest.controller.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cds-ui/server/src/controllers') diff --git a/cds-ui/server/src/controllers/blueprint-rest.controller.ts b/cds-ui/server/src/controllers/blueprint-rest.controller.ts index 1a8de6b47..b2a11281f 100644 --- a/cds-ui/server/src/controllers/blueprint-rest.controller.ts +++ b/cds-ui/server/src/controllers/blueprint-rest.controller.ts @@ -50,6 +50,7 @@ import * as multiparty from 'multiparty'; import * as request_lib from 'request'; import { processorApiConfig, appConfig } from '../config/app-config'; import { bluePrintManagementServiceGrpcClient } from '../clients/blueprint-management-service-grpc-client'; +import {BlueprintDetail} from '../models/blueprint.detail.model'; export class BlueprintRestController { constructor( @@ -68,6 +69,18 @@ export class BlueprintRestController { async getall() { return await this.bpservice.getAllblueprints(); } + @get('/controllerblueprint/{id}', { + responses: { + '200': { + description: 'Blueprint model instance', + content: { 'application/json': { schema: { 'x-ts-type': BlueprintDetail } } }, + }, + }, + }) + async getOneBluePrint(@param.path.string('id') id: string) { + return await this.bpservice.getOneBluePrint(id); + } + @get('/controllerblueprint/paged', { responses: { -- cgit 1.2.3-korg