diff options
Diffstat (limited to 'cds-ui/server')
5 files changed, 15 insertions, 15 deletions
diff --git a/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts b/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts index 8975f4501..b54a1d10c 100644 --- a/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts +++ b/cds-ui/server/src/clients/blueprint-management-service-grpc-client.ts @@ -35,14 +35,14 @@ const packageDefinition: protoLoader.PackageDefinition = protoLoader.loadSync( const protoDescriptor = grpc.loadPackageDefinition(packageDefinition); // The protoDescriptor object has the full package hierarchy -const stub = new protoDescriptor.org.onap.ccsdk.cds.controllerblueprints.management.api.BluePrintManagementService( +const stub = new protoDescriptor.org.onap.ccsdk.cds.controllerblueprints.management.api.BlueprintManagementService( "" + processorApiConfig.grpc.host + ":" + processorApiConfig.grpc.port + "", grpc.credentials.createInsecure()); const metadata = new grpc.Metadata(); metadata.add('Authorization', processorApiConfig.grpc.authToken); -class BluePrintManagementServiceGrpcClient { +class BlueprintManagementServiceGrpcClient { async uploadBlueprint(filePath: string, actionName: string): Promise<any> { @@ -115,5 +115,5 @@ class BluePrintManagementServiceGrpcClient { } } -export const bluePrintManagementServiceGrpcClient = new BluePrintManagementServiceGrpcClient(); +export const bluePrintManagementServiceGrpcClient = new BlueprintManagementServiceGrpcClient(); diff --git a/cds-ui/server/src/config/app-config.ts b/cds-ui/server/src/config/app-config.ts index 5b4a6ec54..68bb74ce0 100644 --- a/cds-ui/server/src/config/app-config.ts +++ b/cds-ui/server/src/config/app-config.ts @@ -39,7 +39,7 @@ export const processorApiConfig = Object.freeze({ authToken: process.env.API_BLUEPRINT_PROCESSOR_GRPC_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==", bluePrintManagement: Object.freeze({ //this path is relative to 'dist' folder - protoPath: __dirname + '../../../proto/BluePrintManagement.proto' + protoPath: __dirname + '../../../proto/BlueprintManagement.proto' }) }) }); diff --git a/cds-ui/server/src/controllers/blueprint-rest.controller.ts b/cds-ui/server/src/controllers/blueprint-rest.controller.ts index 86fdeda86..3bbb7f631 100644 --- a/cds-ui/server/src/controllers/blueprint-rest.controller.ts +++ b/cds-ui/server/src/controllers/blueprint-rest.controller.ts @@ -58,8 +58,8 @@ export class BlueprintRestController { }, }, }) - async getOneBluePrint(@param.path.string('id') id: string) { - return await this.bpservice.getOneBluePrint(id); + async getOneBlueprint(@param.path.string('id') id: string) { + return await this.bpservice.getOneBlueprint(id); } @del('/controllerblueprint/{id}', { @@ -70,8 +70,8 @@ export class BlueprintRestController { }, }, }) - async deleteBluePrint(@param.path.string('id') id: string) { - return await this.bpservice.deleteBluePrint(id); + async deleteBlueprint(@param.path.string('id') id: string) { + return await this.bpservice.deleteBlueprint(id); } @@ -88,7 +88,7 @@ export class BlueprintRestController { @param.query.number('offset') offset: number, @param.query.string('sort') sort: string, @param.query.string('sortType') sortType: string) { - return await this.bpservice.getPagedBueprints(limit, offset, sort, sortType); + return await this.bpservice.getPagedBlueprints(limit, offset, sort, sortType); } @get('/controllerblueprint/metadata/paged/{keyword}', { diff --git a/cds-ui/server/src/datasources/blueprint.datasource-template.ts b/cds-ui/server/src/datasources/blueprint.datasource-template.ts index 3b502d334..e2bf58295 100644 --- a/cds-ui/server/src/datasources/blueprint.datasource-template.ts +++ b/cds-ui/server/src/datasources/blueprint.datasource-template.ts @@ -33,7 +33,7 @@ export default { "responsePath": "$.*" }, "functions": { - "getOneBluePrint": ["id"] + "getOneBlueprint": ["id"] } }, @@ -49,7 +49,7 @@ export default { "responsePath": "$.*" }, "functions": { - "deleteBluePrint": ["id"] + "deleteBlueprint": ["id"] } }, @@ -98,7 +98,7 @@ export default { "responsePath": "$", }, "functions": { - "getPagedBueprints": ["limit", "offset", "sort", "sortType"], + "getPagedBlueprints": ["limit", "offset", "sort", "sortType"], } }, { diff --git a/cds-ui/server/src/services/blueprint.service.ts b/cds-ui/server/src/services/blueprint.service.ts index 379f8d4d5..433301175 100644 --- a/cds-ui/server/src/services/blueprint.service.ts +++ b/cds-ui/server/src/services/blueprint.service.ts @@ -3,12 +3,12 @@ import { inject, Provider } from '@loopback/core'; import { BlueprintDataSource } from '../datasources'; export interface BlueprintService { - getOneBluePrint(id: string): any; - deleteBluePrint(id: string): any; + getOneBlueprint(id: string): any; + deleteBlueprint(id: string): any; getAllblueprints(): Promise<any>; getBlueprintsByKeyword(keyword: string): Promise<any>; getByTags(tags: string): Promise<JSON>; - getPagedBueprints(limit: number, offset: number, sort: string, sortType: String): Promise<any>; + getPagedBlueprints(limit: number, offset: number, sort: string, sortType: String): Promise<any>; getMetaDataPagedBlueprints(limit: number, offset: number, sort: string, keyword: string, sortType: String): Promise<any>; getBlueprintByNameAndVersion(name: string, version: string): Promise<any>; |