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 | }, |
| 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 | } |
Ezhilarasi | ebbafca | 2019-04-11 21:09:26 +0530 | [diff] [blame] | 107 | } |
| 108 | ] |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 109 | }; |