Merge "Clean restconf duplicate models and Implementation."
[ccsdk/cds.git] / cds-ui / server / src / datasources / blueprint.datasource-template.ts
1 import {controllerApiConfig} from '../config/app-config';
2
3 export default {
4     "name": "blueprint",
5     "connector": "rest",
6     "baseURL": controllerApiConfig.http.url,
7     "crud": false,
8     "debug": true,
9     "operations": [{
10         "template": {
11             "method": "GET",
12             "url": controllerApiConfig.http.url + "/blueprint-model/",
13             "headers": {
14                 "accepts": "application/json",
15                 "content-type": "application/json",
16                 "authorization": controllerApiConfig.http.authToken
17             },
18             "responsePath": "$.*"
19         },
20         "functions": {
21             "getAllblueprints": []
22
23         }
24     },
25     {
26         "template": {
27             "method": "GET",
28             "url": controllerApiConfig.http.url + "/blueprint-model/search/{tags}",
29             "headers": {
30                 "accepts": "application/json",
31                 "content-type": "application/json",
32                 "authorization": controllerApiConfig.http.authToken
33             },
34             "responsePath": "$.*"
35         },
36         "functions": {
37             "getByTags": ["tags"]
38
39         }
40     },
41 ]
42 };