aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/common
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2019-12-17 14:26:39 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-17 14:26:39 +0000
commit20b07e37990f1926d7b3cb45542b76c0336f9f19 (patch)
tree8b595442c16d4b2aee33c137015ca007f3b21d01 /cds-ui/designer-client/src/app/common
parent383235b495c32a1762511f1837bc9e98af6226eb (diff)
parent2960c232dc70bcd0de375a3732f98cef41b9e0b4 (diff)
Merge "adding new designer component, sort and configuration dashboard"
Diffstat (limited to 'cds-ui/designer-client/src/app/common')
-rw-r--r--cds-ui/designer-client/src/app/common/constants/app-constants.ts3
-rw-r--r--cds-ui/designer-client/src/app/common/core/services/api.typed.service.ts12
2 files changed, 14 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/common/constants/app-constants.ts b/cds-ui/designer-client/src/app/common/constants/app-constants.ts
index cfe8061f3..506d3b90f 100644
--- a/cds-ui/designer-client/src/app/common/constants/app-constants.ts
+++ b/cds-ui/designer-client/src/app/common/constants/app-constants.ts
@@ -88,6 +88,7 @@ export const GlobalContants = {
export const BlueprintURLs = {
getAllBlueprints: '/controllerblueprint/all',
+ getOneBlueprint: '/controllerblueprint',
getPagedBlueprints: '/controllerblueprint/paged',
searchByTag: '/controllerblueprint/searchByTags/',
save: '/controllerblueprint/create-blueprint',
@@ -106,7 +107,7 @@ export const ResourceDictionaryURLs = {
searchResourceDictionaryByName: '',
getSources: '/resourcedictionary/source-mapping',
getModelType: '/resourcedictionary/model-type',
- getDataType: '/resourcedictionary/model-type/by-definition/data_type'
+ getResourceDictionary: '/resourcedictionary/model-type/by-definition'
};
export const ControllerCatalogURLs = {
diff --git a/cds-ui/designer-client/src/app/common/core/services/api.typed.service.ts b/cds-ui/designer-client/src/app/common/core/services/api.typed.service.ts
index 2f3778c1a..9c9477f33 100644
--- a/cds-ui/designer-client/src/app/common/core/services/api.typed.service.ts
+++ b/cds-ui/designer-client/src/app/common/core/services/api.typed.service.ts
@@ -48,4 +48,16 @@ export class ApiService<T> {
return this.httpClient.post(url, body, options);
}
+
+ getOne(url: string, params?: {}): Observable<T> {
+ console.log('params', params);
+ let httpParams = new HttpParams();
+ for (const key in params) {
+ if (params.hasOwnProperty(key)) {
+ httpParams = httpParams.append(key, params[key]);
+ }
+ }
+ const options = {params: httpParams};
+ return this.httpClient.get<T>(url, options);
+ }
}