Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Channel and Route schemas already define the name

...

Code Block
languagejs
{
	uuid: "<a UUID>", // A unique identifier to identify the mediator, this identifier should always stay the same even if the mediator changes
	version: "", // the version of the mediator, if this is incremented the OpenHIM-core will update the channel configuration - expects a semver string
	name: "", // a human readable name for the mediator
	defaultChannelConfig: { // (optional) a map of default channel to add for this mediator
		"<channel_name1>": { ... }, // a channel object as defined by the OpenHIM-core
		"<channel_name1>": { ... }
	},
	endpoints: { // (A minimum of 1 endpoint must be defined) a map of endpoints that the mediator can be contacted on
		"<endpoint_name1>": { ... }, // a route object as defined by OpenHIM-core - https://github.com/jembi/openhim-core-js/blob/master/src/model/channels.coffee#L5-L15
		"<endpoint_name2>": { ... }
	}
}

The OpenHIM-core SHALL respond with a HTTP status of 201 if the mediator registration was successful.

...