Michael Hwang | b86b427 | 2017-08-24 12:18:43 -0400 | [diff] [blame] | 1 | { |
| 2 | "self":{ |
| 3 | "name":"cdap.helloworld.endnode", |
| 4 | "version":"0.8.0", |
| 5 | "description":"cdap test component", |
| 6 | "component_type":"cdap" |
| 7 | }, |
| 8 | "streams":{ |
| 9 | "subscribes": [ |
| 10 | { |
| 11 | "format": "some.format", |
| 12 | "version": "5.0.0", |
| 13 | "route": "/yay", |
| 14 | "type": "http" |
| 15 | }, |
| 16 | { |
| 17 | "format": "some.format", |
| 18 | "version": "5.0.0", |
| 19 | "config_key": "foo-sub", |
| 20 | "type": "message router" |
| 21 | }], |
| 22 | "publishes": [{ |
| 23 | "format": "std.empty", |
| 24 | "version": "1.0.6", |
| 25 | "config_key": "stream_publish_example", |
| 26 | "type": "message_router" |
| 27 | }] |
| 28 | }, |
| 29 | "services":{ |
| 30 | "calls": [], |
| 31 | "provides":[ |
| 32 | { |
| 33 | "request":{ |
| 34 | "format":"std.empty", |
| 35 | "version":"1.0.6" |
| 36 | }, |
| 37 | "response":{ |
| 38 | "format":"std.empty", |
| 39 | "version":"1.0.6" |
| 40 | }, |
| 41 | "service_name":"Greeting", |
| 42 | "service_endpoint":"greet", |
| 43 | "verb":"GET" |
| 44 | } |
| 45 | ] |
| 46 | }, |
| 47 | "parameters": { |
| 48 | "app_config" : [ |
| 49 | {"name" : "some_param", |
| 50 | "description" : "some desc", |
| 51 | "value" : "some_value", |
| 52 | "type": "string"} |
| 53 | ], |
| 54 | "app_preferences" : [ |
| 55 | {"name" : "some_param2", |
| 56 | "description" : "some desc2", |
| 57 | "value" : true, |
| 58 | "type": "boolean"} |
| 59 | ], |
| 60 | "program_preferences" : [{"program_type" : "flows", "program_id" : "WhoFlow", "program_pref" : [{"name" : "some_param3","description" : "some desc3", "value" : "some_value3", "type": "number"}]}] |
| 61 | }, |
| 62 | "auxilary": { |
| 63 | "streamname":"who", |
| 64 | "artifact_name" : "HelloWorld", |
| 65 | "artifact_version" : "3.4.3", |
| 66 | "programs" : [ |
| 67 | {"program_type" : "flows", "program_id" : "WhoFlow"}, |
| 68 | {"program_type" : "services", "program_id" : "Greeting"} |
| 69 | ], |
| 70 | "namespace" : "hw" |
| 71 | }, |
| 72 | "artifacts": [ |
| 73 | { |
| 74 | "uri": "some jar url", |
| 75 | "type": "jar" |
| 76 | } |
| 77 | ] |
| 78 | } |