Merge "Removed component and code not required"
diff --git a/cds-ui/client/src/app/common/constants/app-constants.ts b/cds-ui/client/src/app/common/constants/app-constants.ts
index bcfcc4e..49c6e60 100644
--- a/cds-ui/client/src/app/common/constants/app-constants.ts
+++ b/cds-ui/client/src/app/common/constants/app-constants.ts
@@ -93,6 +93,16 @@
}
};
+export const BlueprintURLs = {
+ getAllBlueprints: '/controllerblueprint/all',
+ searchByTag: '/controllerblueprint/searchByTags/{tags}',
+ save: '/controllerblueprint/create-blueprint',
+ publish: '/controllerblueprint/publish',
+ enrich: '/controllerblueprint/enrich-blueprint',
+ download: '/controllerblueprint/download-blueprint/{name}/{version}',
+ deploy:'/controllerblueprint/deploy-blueprint'
+}
+
export const ResourceDictionaryURLs = {
saveResourceDictionary: '/resourcedictionary/save',
searchResourceDictionaryByTags: '/resourcedictionary/search',
diff --git a/cds-ui/server/src/controllers/blueprint-rest.controller.ts b/cds-ui/server/src/controllers/blueprint-rest.controller.ts
index 14aba56..c73f7a6 100644
--- a/cds-ui/server/src/controllers/blueprint-rest.controller.ts
+++ b/cds-ui/server/src/controllers/blueprint-rest.controller.ts
@@ -57,7 +57,7 @@
public bpservice: BlueprintService,
) { }
- @get('/blueprints', {
+ @get('/controllerblueprint/all', {
responses: {
'200': {
description: 'Blueprint model instance',
@@ -69,7 +69,7 @@
return await this.bpservice.getAllblueprints();
}
- @get('/searchByTags/{tags}', {
+ @get('/controllerblueprint/searchByTags/{tags}', {
responses: {
'200': {
content: { 'application/json': {} },
@@ -80,7 +80,7 @@
return await this.bpservice.getByTags(tags);
}
- @post('/create-blueprint')
+ @post('/controllerblueprint/create-blueprint')
async upload(
@requestBody({
description: 'multipart/form-data value.',
@@ -109,7 +109,7 @@
});
}
- @post('/publish')
+ @post('/controllerblueprint/publish')
async publish(
@requestBody({
description: 'multipart/form-data value.',
@@ -138,7 +138,7 @@
});
}
- @post('/enrich-blueprint')
+ @post('/controllerblueprint/enrich-blueprint')
async enrich(
@requestBody({
description: 'multipart/form-data value.',
@@ -167,7 +167,7 @@
});
}
- @get('/download-blueprint/{name}/{version}')
+ @get('/controllerblueprint/download-blueprint/{name}/{version}')
async download(
@param.path.string('name') name: string,
@param.path.string('version') version: string,
@@ -191,7 +191,7 @@
})
}
- @post('/deploy-blueprint')
+ @post('/controllerblueprint/deploy-blueprint')
async deploy(
@requestBody({
description: 'multipart/form-data value.',
diff --git a/cds-ui/server/src/controllers/index.ts b/cds-ui/server/src/controllers/index.ts
index 59f6351..fd4d9c8 100644
--- a/cds-ui/server/src/controllers/index.ts
+++ b/cds-ui/server/src/controllers/index.ts
@@ -20,4 +20,5 @@
*/
export * from './ping.controller';
+export * from './blueprint-rest.controller';
export * from './data-dictionary.controller';