POST chan_name/v1/publish

The web method POST chan_name/v1/publish publishes a message on a specific channel. The request body is the message to publish (in JSON format).

chan_name in the URI is the channel name.

Example Requests

curl POST http://host:port/chan_name/v1/publish -d  json_message
curl POST http://host:port/chan_name/v1/publish -d '{"name":"joe","id":123}'

Example Response

{
  "error":{
    "code":0,
    "reason":""
  }
}