Renaming Files having BluePrint to have Blueprint
[ccsdk/cds.git] / cds-ui / server / src / datasources / blueprint.datasource-template.ts
1 import { processorApiConfig } from '../config/app-config';
2
3 export default {
4     "name": "blueprint",
5     "connector": "rest",
6     "baseURL": processorApiConfig.http.url,
7     "crud": false,
8     "debug": true,
9     "operations": [{
10         "template": {
11             "method": "GET",
12             "url": processorApiConfig.http.url + "/blueprint-model/",
13             "headers": {
14                 "accepts": "application/json",
15                 "content-type": "application/json",
16                 "authorization": processorApiConfig.http.authToken
17             },
18             "responsePath": "$.*"
19         },
20         "functions": {
21             "getAllblueprints": []
22
23         }
24     }, {
25         "template": {
26             "method": "GET",
27             "url": processorApiConfig.http.url + "/blueprint-model/{id}",
28             "headers": {
29                 "accepts": "application/json",
30                 "content-type": "application/json",
31                 "authorization": processorApiConfig.http.authToken
32             },
33             "responsePath": "$.*"
34         },
35         "functions": {
36             "getOneBlueprint": ["id"]
37
38         }
39     },
40     {
41         "template": {
42             "method": "DELETE",
43             "url": processorApiConfig.http.url + "/blueprint-model/{id}",
44             "headers": {
45                 "accepts": "application/json",
46                 "content-type": "application/json",
47                 "authorization": processorApiConfig.http.authToken
48             },
49             "responsePath": "$.*"
50         },
51         "functions": {
52             "deleteBlueprint": ["id"]
53
54         }
55     },
56
57     {
58         "template": {
59             "method": "GET",
60             "url": processorApiConfig.http.url + "/blueprint-model/search/{tags}",
61             "headers": {
62                 "accepts": "application/json",
63                 "content-type": "application/json",
64                 "authorization": processorApiConfig.http.authToken
65             },
66             "responsePath": "$.*"
67         },
68         "functions": {
69             "getByTags": ["tags"]
70
71         }
72     },
73     {
74         "template": {
75             "method": "GET",
76             "url": processorApiConfig.http.url + "/blueprint-model/meta-data/{keyword}",
77             "headers": {
78                 "accepts": "application/json",
79                 "content-type": "application/json",
80                 "authorization": processorApiConfig.http.authToken
81             },
82             "responsePath": "$.*"
83         },
84         "functions": {
85             "getBlueprintsByKeyword": ["keyword"]
86
87         }
88     },
89     {
90         "template": {
91             "method": "GET",
92             "url": processorApiConfig.http.url + "/blueprint-model/paged?limit={limit}&offset={offset}&sort={sort}&sortType={sortType}",
93             "headers": {
94                 "accepts": "application/json",
95                 "content-type": "application/json",
96                 "authorization": processorApiConfig.http.authToken
97             },
98             "responsePath": "$",
99         },
100         "functions": {
101             "getPagedBlueprints": ["limit", "offset", "sort", "sortType"],
102         }
103     },
104     {
105         "template": {
106             "method": "GET",
107             "url": processorApiConfig.http.url + "/blueprint-model/paged/meta-data/{keyword}?limit={limit}&offset={offset}&sort={sort}&sortType={sortType}",
108             "headers": {
109                 "accepts": "application/json",
110                 "content-type": "application/json",
111                 "authorization": processorApiConfig.http.authToken
112             },
113             "responsePath": "$",
114         },
115         "functions": {
116             "getMetaDataPagedBlueprints": ["limit", "offset", "sort", "keyword", "sortType"],
117         }
118     },
119     {
120         "template": {
121             "method": "GET",
122             "url": processorApiConfig.http.url + "/blueprint-model/by-name/{name}/version/{version}",
123             "headers": {
124                 "accepts": "application/json",
125                 "content-type": "application/json",
126                 "authorization": processorApiConfig.http.authToken
127             },
128             "responsePath": "$",
129         },
130         "functions": {
131             "getBlueprintByNameAndVersion": ["name", "version"],
132         }
133     },
134     ]
135
136 };