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 { |
| 4 | "name": "blueprint", |
| 5 | "connector": "rest", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 6 | "baseURL": controllerApiConfig.http.url, |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 7 | "crud": false, |
Rami | 1741102 | 2019-05-27 17:23:37 +0200 | [diff] [blame] | 8 | "debug": true, |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [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 + "/blueprint-model/", |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [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 |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 17 | }, |
| 18 | "responsePath": "$.*" |
| 19 | }, |
| 20 | "functions": { |
| 21 | "getAllblueprints": [] |
| 22 | |
| 23 | } |
Ezhilarasi | 8cfbbce | 2019-07-22 21:14:08 +0530 | [diff] [blame^] | 24 | }, |
| 25 | { |
| 26 | "template": { |
| 27 | "method": "GET", |
| 28 | "url": controllerApiConfig.http.url + "/blueprint-model/search/{tags}", |
| 29 | "headers": { |
| 30 | "accepts": "application/json", |
| 31 | "content-type": "application/json", |
| 32 | "authorization": controllerApiConfig.http.authToken |
| 33 | }, |
| 34 | "responsePath": "$.*" |
| 35 | }, |
| 36 | "functions": { |
| 37 | "getByTags": ["tags"] |
| 38 | |
| 39 | } |
| 40 | }, |
| 41 | ] |
Nirvan Ramjuttun | 087d4b6 | 2019-05-07 12:39:19 -0400 | [diff] [blame] | 42 | }; |