diff options
author | swapnalipode <sp00501638@techmahindra.com> | 2020-01-10 22:28:48 +0530 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2020-01-13 19:40:39 +0000 |
commit | f52cf7ce4451fd5fa1bbc6cf30e5b2a0acab7276 (patch) | |
tree | f8f7c455e9751633e47686d5065f47704c79f56d /cds-ui/server/src/datasources/controller-catalog.datasource-template.ts | |
parent | 2977ea8da5b586a301a858f82b3956151d4ef742 (diff) |
Adding integration to backend in Controller catalog
Adding integration to backend in controller catalog
Change-Id: Ia423d05ee5b089af6df70296a40d36d84892d488
Issue-ID: CCSDK-814
Signed-off-by: swapnalipode <sp00501638@techmahindra.com>
Diffstat (limited to 'cds-ui/server/src/datasources/controller-catalog.datasource-template.ts')
-rw-r--r-- | cds-ui/server/src/datasources/controller-catalog.datasource-template.ts | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/cds-ui/server/src/datasources/controller-catalog.datasource-template.ts b/cds-ui/server/src/datasources/controller-catalog.datasource-template.ts new file mode 100644 index 000000000..e45741576 --- /dev/null +++ b/cds-ui/server/src/datasources/controller-catalog.datasource-template.ts @@ -0,0 +1,76 @@ +import {processorApiConfig} from '../config/app-config';
+
+export default {
+ "name": "controllerCatalog",
+ "connector": "rest",
+ "baseURL": processorApiConfig.http.url + "/model-type",
+ "crud": false,
+ "debug": true,
+ "operations": [
+
+ {
+ "template": {
+ "method": "GET",
+ "url": processorApiConfig.http.url + "/model-type/search/{tags}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "getByTags": ["tags"]
+
+ }
+ },
+ {
+ "template": {
+ "method": "POST",
+ "url": processorApiConfig.http.url + "/model-type",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "body": "{controllerCatalog}",
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "save": ["controllerCatalog"]
+
+ }
+ },
+ {
+ "template": {
+ "method": "GET",
+ "url": processorApiConfig.http.url + "/model-type/by-definition/{definitionType}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "getDefinitionTypes": ["definitionType"]
+
+ }
+ },
+ {
+ "template": {
+ "method": "DEL",
+ "url": processorApiConfig.http.url + "/model-type/{name}",
+ "headers": {
+ "accepts": "application/json",
+ "content-type": "application/json",
+ "authorization": processorApiConfig.http.authToken
+ },
+ "responsePath": "$.*"
+ },
+ "functions": {
+ "delete": ["name"]
+ }
+ }
+ ]
+};
\ No newline at end of file |