Bug fix Session clearance
[ccsdk/cds.git] / cds-ui / server / src / datasources / resource-dictionary.datasource.json
1 {
2     "name": "resourceDictionary",
3     "connector": "rest",
4     "baseURL": "http://localhost:8080/api/v1/dictionary",
5     "crud": false,
6     "operations": [{
7             "template": {
8                 "method": "GET",
9                 "url": "http://localhost:8080/api/v1/dictionary/{name}",
10                 "headers": {
11                     "accepts": "application/json",
12                     "content-type": "application/json",
13                     "authorization": "{authtoken}"
14                 },
15                 "responsePath": "$.*"
16             },
17             "functions": {
18                 "getByName": ["name", "authtoken"]
19
20             }
21         },
22         {
23             "template": {
24                 "method": "GET",
25                 "url": "http://localhost:8080/api/v1/dictionary/source-mapping",
26                 "headers": {
27                     "accepts": "application/json",
28                     "content-type": "application/json",
29                     "authorization": "{authtoken}"
30                 },
31                 "responsePath": "$.*"
32             },
33             "functions": {
34                 "getSourceMapping": ["authtoken"]
35
36             }
37         },
38         {
39             "template": {
40                 "method": "GET",
41                 "url": "http://localhost:8080/api/v1/dictionary/search/{tags}",
42                 "headers": {
43                     "accepts": "application/json",
44                     "content-type": "application/json",
45                     "authorization": "{authtoken}"
46                 },
47                 "responsePath": "$.*"
48             },
49             "functions": {
50                 "getByTags": ["tags", "authtoken"]
51
52             }
53         },
54         {
55             "template": {
56                 "method": "POST",
57                 "url": "http://localhost:8080/api/v1/dictionary",
58                 "headers": {
59                     "accepts": "application/json",
60                     "content-type": "application/json",
61                     "authorization": "{authtoken}"
62                 },
63                 "body": "{resourceDictionary}",
64                 "responsePath": "$.*"
65             },
66             "functions": {
67                 "save": ["authtoken", "resourceDictionary"]
68
69             }
70         },
71         {
72             "template": {
73                 "method": "POST",
74                 "url": "http://localhost:8080/api/v1/dictionary/by-names",
75                 "headers": {
76                     "accepts": "application/json",
77                     "content-type": "application/json",
78                     "authorization": "{authtoken}"
79                 },
80                 "body": "{resourceDictionaryList}",
81                 "responsePath": "$.*"
82             },
83             "functions": {
84                 "searchbyNames": ["authtoken", "resourceDictionaryList"]
85
86             }
87         }
88     ]
89 }