Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 1 | import {controllerApiConfig} from '../config/app-config'; |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 2 | |
| 3 | export default { |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 4 | "name": "resourceDictionary", |
| 5 | "connector": "rest", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 6 | "baseURL": controllerApiConfig.http.url + "/dictionary", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 7 | "crud": false, |
Rami | 1741102 | 2019-05-27 17:23:37 +0200 | [diff] [blame] | 8 | "debug": true, |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 9 | "operations": [{ |
| 10 | "template": { |
| 11 | "method": "GET", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 12 | "url": controllerApiConfig.http.url + "/dictionary/{name}", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 13 | "headers": { |
| 14 | "accepts": "application/json", |
| 15 | "content-type": "application/json", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 16 | "authorization": controllerApiConfig.http.authToken |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 17 | }, |
| 18 | "responsePath": "$.*" |
| 19 | }, |
| 20 | "functions": { |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 21 | "getByName": ["name"] |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 22 | |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "template": { |
| 27 | "method": "GET", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 28 | "url": controllerApiConfig.http.url + "/dictionary/source-mapping", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 29 | "headers": { |
| 30 | "accepts": "application/json", |
| 31 | "content-type": "application/json", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 32 | "authorization": controllerApiConfig.http.authToken |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 33 | }, |
| 34 | "responsePath": "$.*" |
| 35 | }, |
| 36 | "functions": { |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 37 | "getSourceMapping": [] |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 38 | |
| 39 | } |
| 40 | }, |
| 41 | { |
| 42 | "template": { |
| 43 | "method": "GET", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 44 | "url": controllerApiConfig.http.url + "/dictionary/search/{tags}", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 45 | "headers": { |
| 46 | "accepts": "application/json", |
| 47 | "content-type": "application/json", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 48 | "authorization": controllerApiConfig.http.authToken |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 49 | }, |
| 50 | "responsePath": "$.*" |
| 51 | }, |
| 52 | "functions": { |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 53 | "getByTags": ["tags"] |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 54 | |
| 55 | } |
| 56 | }, |
| 57 | { |
| 58 | "template": { |
| 59 | "method": "POST", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 60 | "url": controllerApiConfig.http.url + "/dictionary", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 61 | "headers": { |
| 62 | "accepts": "application/json", |
| 63 | "content-type": "application/json", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 64 | "authorization": controllerApiConfig.http.authToken |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 65 | }, |
| 66 | "body": "{resourceDictionary}", |
| 67 | "responsePath": "$.*" |
| 68 | }, |
| 69 | "functions": { |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 70 | "save": ["resourceDictionary"] |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 71 | |
| 72 | } |
| 73 | }, |
| 74 | { |
| 75 | "template": { |
| 76 | "method": "POST", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 77 | "url": controllerApiConfig.http.url + "/dictionary/by-names", |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 78 | "headers": { |
| 79 | "accepts": "application/json", |
| 80 | "content-type": "application/json", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 81 | "authorization": controllerApiConfig.http.authToken |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 82 | }, |
| 83 | "body": "{resourceDictionaryList}", |
| 84 | "responsePath": "$.*" |
| 85 | }, |
| 86 | "functions": { |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 87 | "searchbyNames": ["resourceDictionaryList"] |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 88 | |
| 89 | } |
Arundathi Patil | 3dd38ac | 2019-07-17 22:32:44 +0530 | [diff] [blame] | 90 | }, |
Arundathi Patil | 3dd38ac | 2019-07-17 22:32:44 +0530 | [diff] [blame] | 91 | { |
| 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 Patil | 7918513 | 2019-09-09 19:27:04 +0530 | [diff] [blame] | 106 | }, |
| 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 | } |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 122 | } |
| 123 | ] |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 124 | }; |