POST api/Courier/SendMessageToSelectedCouriers

Request Information

URI Parameters

None.

Body Parameters

BroadcastMessageModel
Name Description Type Additional information
Message

string

None.

ServiceWorkers

Collection of ServiceWorkerBroadcastMessageModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "ServiceWorkers": [
    {
      "ServiceWorkerId": 1,
      "Tag": "sample string 2"
    },
    {
      "ServiceWorkerId": 1,
      "Tag": "sample string 2"
    }
  ]
}

text/html

Sample:
{"Message":"sample string 1","ServiceWorkers":[{"ServiceWorkerId":1,"Tag":"sample string 2"},{"ServiceWorkerId":1,"Tag":"sample string 2"}]}

application/xml, text/xml

Sample:
<BroadcastMessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.Employee">
  <Message>sample string 1</Message>
  <ServiceWorkers>
    <ServiceWorkerBroadcastMessageModel>
      <ServiceWorkerId>1</ServiceWorkerId>
      <Tag>sample string 2</Tag>
    </ServiceWorkerBroadcastMessageModel>
    <ServiceWorkerBroadcastMessageModel>
      <ServiceWorkerId>1</ServiceWorkerId>
      <Tag>sample string 2</Tag>
    </ServiceWorkerBroadcastMessageModel>
  </ServiceWorkers>
</BroadcastMessageModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.