diff options
author | Nirvan Ramjuttun <nirvan.ramjuttun@amdocs.com> | 2019-05-07 12:39:19 -0400 |
---|---|---|
committer | Nirvan Ramjuttun <nirvan.ramjuttun@amdocs.com> | 2019-05-07 12:40:03 -0400 |
commit | 087d4b667a9c5517ac7d014c2bbdad994b927147 (patch) | |
tree | 1c0f7eb856794a3a161ebdb3029fba4eb48a6f3e /cds-ui/server/src/datasources/blueprint.datasource-template.ts | |
parent | 0924c4da768d1119a17936933606a38de6526b52 (diff) |
Modify CDS-UI server to allow communicating with external blueprint mS
Issue-ID: CCSDK-1292
Change-Id: I3536437bad334841d7c7ecd577c092cd13f42a9b
Signed-off-by: Nirvan Ramjuttun <nirvan.ramjuttun@amdocs.com>
Diffstat (limited to 'cds-ui/server/src/datasources/blueprint.datasource-template.ts')
-rw-r--r-- | cds-ui/server/src/datasources/blueprint.datasource-template.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cds-ui/server/src/datasources/blueprint.datasource-template.ts b/cds-ui/server/src/datasources/blueprint.datasource-template.ts new file mode 100644 index 000000000..3cbf09576 --- /dev/null +++ b/cds-ui/server/src/datasources/blueprint.datasource-template.ts @@ -0,0 +1,24 @@ +import {controllerApiConfig} from '../../config/app-config'; + +export default { + "name": "blueprint", + "connector": "rest", + "baseURL": controllerApiConfig.url, + "crud": false, + "operations": [{ + "template": { + "method": "GET", + "url": controllerApiConfig.url + "/blueprint-model/", + "headers": { + "accepts": "application/json", + "content-type": "application/json", + "authorization": controllerApiConfig.authToken + }, + "responsePath": "$.*" + }, + "functions": { + "getAllblueprints": [] + + } + }] +};
\ No newline at end of file |