blob: 9f9d754d16d952762d6431c389236832d7abbc57 [file] [log] [blame]
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -04001import {controllerApiConfig} from '../config/app-config';
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -04002
3export default {
Ezhilarasiebbafca2019-04-11 21:09:26 +05304 "name": "resourceDictionary",
5 "connector": "rest",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -04006 "baseURL": controllerApiConfig.http.url + "/dictionary",
Ezhilarasiebbafca2019-04-11 21:09:26 +05307 "crud": false,
Rami17411022019-05-27 17:23:37 +02008 "debug": true,
Ezhilarasiebbafca2019-04-11 21:09:26 +05309 "operations": [{
10 "template": {
11 "method": "GET",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040012 "url": controllerApiConfig.http.url + "/dictionary/{name}",
Ezhilarasiebbafca2019-04-11 21:09:26 +053013 "headers": {
14 "accepts": "application/json",
15 "content-type": "application/json",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040016 "authorization": controllerApiConfig.http.authToken
Ezhilarasiebbafca2019-04-11 21:09:26 +053017 },
18 "responsePath": "$.*"
19 },
20 "functions": {
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -040021 "getByName": ["name"]
Ezhilarasiebbafca2019-04-11 21:09:26 +053022
23 }
24 },
25 {
26 "template": {
27 "method": "GET",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040028 "url": controllerApiConfig.http.url + "/dictionary/source-mapping",
Ezhilarasiebbafca2019-04-11 21:09:26 +053029 "headers": {
30 "accepts": "application/json",
31 "content-type": "application/json",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040032 "authorization": controllerApiConfig.http.authToken
Ezhilarasiebbafca2019-04-11 21:09:26 +053033 },
34 "responsePath": "$.*"
35 },
36 "functions": {
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -040037 "getSourceMapping": []
Ezhilarasiebbafca2019-04-11 21:09:26 +053038
39 }
40 },
41 {
42 "template": {
43 "method": "GET",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040044 "url": controllerApiConfig.http.url + "/dictionary/search/{tags}",
Ezhilarasiebbafca2019-04-11 21:09:26 +053045 "headers": {
46 "accepts": "application/json",
47 "content-type": "application/json",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040048 "authorization": controllerApiConfig.http.authToken
Ezhilarasiebbafca2019-04-11 21:09:26 +053049 },
50 "responsePath": "$.*"
51 },
52 "functions": {
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -040053 "getByTags": ["tags"]
Ezhilarasiebbafca2019-04-11 21:09:26 +053054
55 }
56 },
57 {
58 "template": {
59 "method": "POST",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040060 "url": controllerApiConfig.http.url + "/dictionary",
Ezhilarasiebbafca2019-04-11 21:09:26 +053061 "headers": {
62 "accepts": "application/json",
63 "content-type": "application/json",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040064 "authorization": controllerApiConfig.http.authToken
Ezhilarasiebbafca2019-04-11 21:09:26 +053065 },
66 "body": "{resourceDictionary}",
67 "responsePath": "$.*"
68 },
69 "functions": {
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -040070 "save": ["resourceDictionary"]
Ezhilarasiebbafca2019-04-11 21:09:26 +053071
72 }
73 },
74 {
75 "template": {
76 "method": "POST",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040077 "url": controllerApiConfig.http.url + "/dictionary/by-names",
Ezhilarasiebbafca2019-04-11 21:09:26 +053078 "headers": {
79 "accepts": "application/json",
80 "content-type": "application/json",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040081 "authorization": controllerApiConfig.http.authToken
Ezhilarasiebbafca2019-04-11 21:09:26 +053082 },
83 "body": "{resourceDictionaryList}",
84 "responsePath": "$.*"
85 },
86 "functions": {
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -040087 "searchbyNames": ["resourceDictionaryList"]
Ezhilarasiebbafca2019-04-11 21:09:26 +053088
89 }
Arundathi Patil3dd38ac2019-07-17 22:32:44 +053090 },
Arundathi Patil3dd38ac2019-07-17 22:32:44 +053091 {
92 "template": {
93 "method": "GET",
94 "url": controllerApiConfig.http.url + "/model-type/{source}",
95 "headers": {
96 "accepts": "application/json",
97 "content-type": "application/json",
98 "authorization": controllerApiConfig.http.authToken
99 },
100 "responsePath": "$.*"
101 },
102 "functions": {
103 "getModelType": ["source"]
104
105 }
Arundathi Patil79185132019-09-09 19:27:04 +0530106 },
107 {
108 "template": {
109 "method": "GET",
110 "url": controllerApiConfig.http.url + "/model-type/by-definition/data_type",
111 "headers": {
112 "accepts": "application/json",
113 "content-type": "application/json",
114 "authorization": controllerApiConfig.http.authToken
115 },
116 "responsePath": "$.*"
117 },
118 "functions": {
119 "getDataTypes": []
120
121 }
Ezhilarasiebbafca2019-04-11 21:09:26 +0530122 }
123 ]
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -0400124};