aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers
diff options
context:
space:
mode:
authorShaaban Ebrahim <shaaban.altanany@gmail.com>2019-11-26 08:38:53 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2019-12-04 10:19:14 +0200
commitcc3ce703bcfba0bdded60cadc863c6e9c7e42543 (patch)
tree48b84db39482178d581fa169f7ff43766cfe4ecb /cds-ui/server/src/controllers
parentadbbdf4f899833229f7244af91e4deb379a3a942 (diff)
Creating findOneBluePrintModel (configuration)
Issue-ID: CCSDK-1770 Signed-off-by: Shaaban Ebrahim <shaaban.eltanany.ext@orange.com> Change-Id: I61a947533a1b61138d004a22c5a796d09ab2c8d9
Diffstat (limited to 'cds-ui/server/src/controllers')
-rw-r--r--cds-ui/server/src/controllers/blueprint-rest.controller.ts13
1 files changed, 13 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 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: {