POST api/notification/send

Request Information

URI Parameters

None.

Body Parameters

NotificationModel
NameDescriptionTypeAdditional information
DeviceToken

string

None.

DeviceType

string

None.

UserId

string

None.

Title

string

None.

Body

string

None.

NotificationType

string

None.

ReferenceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceToken": "sample string 1",
  "DeviceType": "sample string 2",
  "UserId": "sample string 3",
  "Title": "sample string 4",
  "Body": "sample string 5",
  "NotificationType": "sample string 6",
  "ReferenceId": "sample string 7"
}

application/xml, text/xml

Sample:
<NotificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dizital_App_Modal.EmployeeModal">
  <Body>sample string 5</Body>
  <DeviceToken>sample string 1</DeviceToken>
  <DeviceType>sample string 2</DeviceType>
  <NotificationType>sample string 6</NotificationType>
  <ReferenceId>sample string 7</ReferenceId>
  <Title>sample string 4</Title>
  <UserId>sample string 3</UserId>
</NotificationModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NotificationModel'.

Response Information

Resource Description

FirebaseResponseModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Response

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Response": "sample string 3"
}

application/xml, text/xml

Sample:
<FirebaseResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dizital_App_DAL">
  <Message>sample string 2</Message>
  <Response>sample string 3</Response>
  <Success>true</Success>
</FirebaseResponseModel>