blob: af96aca04c6b8fb4980b4bcd29cb34cb05d6689c [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 },
91 ,
92 {
93 "template": {
94 "method": "GET",
95 "url": controllerApiConfig.http.url + "/model-type/{source}",
96 "headers": {
97 "accepts": "application/json",
98 "content-type": "application/json",
99 "authorization": controllerApiConfig.http.authToken
100 },
101 "responsePath": "$.*"
102 },
103 "functions": {
104 "getModelType": ["source"]
105
106 }
Ezhilarasiebbafca2019-04-11 21:09:26 +0530107 }
108 ]
Nirvan Ramjuttun087d4b62019-05-07 12:39:19 -0400109};