...
Code Block | ||
---|---|---|
| ||
[ { "name": "Some Registry Channel", "urlPattern": "test/sample/.+", "allow": "*", "routes": [ { "name": "Some Registry", "path": "some/other/path" // this is optional if left out original path is used "host": "localhost", "port": 8080 } ] "properties": [ // optional meta data about a channel { "prop1": "value1" }, { "prop2": "value2" } ] }, { "name": "Some Registry Channel", "urlPattern": "test/sample2/.+/test2", "allow": [ "Alice","Bob", "PoC" ], "routes": [ { "name": "Some Registry", "host": "localhost", "port": 8080, "primary": true }, { "name": "Logger", "host": "log-host", "port": 4789 } ] "properties": [ // optional meta data about a channel { "prop1": "value1" }, { "prop2": "value2" } ] } ] |
Restful API
The OpenHIM must also expose a restful API that enables it to be configured and to allow access to the transaction that it has logged. This restful API will drive a web application that can allow the OpenHIM to be configured and will allow allow transaction to be viewed and monitored.
...