generator-mediator-js
Version:
OpenHIM Mediator generator for Node.js
51 lines • 1.18 kB
JSON
{
"urn": "<%= mediatorUUID %>",
"version": "0.0.1",
"name": "<%= mediatorName %>",
"description": "<%= mediatorDesc %>",
"defaultChannelConfig": [
{
"name": "<%= mediatorName %>",
"urlPattern": "<%= defaultChannelPath %>",
"alerts": [],
"txRerunAcl": [],
"txViewFullAcl": [],
"txViewAcl": [],
"properties": [],
"matchContentTypes": [],
"routes": [
{
"name": "<%= mediatorName %> Route",
"host": "<%= mediatorHost %>",
"port": "<%= configPort %>",
"primary": true,
"type": "http"
}
],
"allow": ["admin"],
"type": "http"
}
],
"endpoints": [
{
"name": "<%= mediatorName %> Route",
"host": "<%= mediatorHost %>",
"path": "/",
"port": "<%= configPort %>",
"primary": true,
"type": "http"
}
],
"configDefs": [
{
"param": "upstreamUrl",
"displayName": "Upstream URL",
"description": "The URL of the service upstream of the mediator",
"type": "string",
"template": []
}
],
"config": {
"upstreamUrl": "http://sampleApplication:7001"
}
}