POST api/Alert

Request Information

URI Parameters

None.

Body Parameters

Alert
NameDescriptionTypeAdditional information
AlertID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Description

string

None.

DepartmentID

integer

None.

PostedOn

string

None.

Username

string

None.

Address

string

None.

NearbyPlace

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AlertID": 1,
  "Latitude": 2.0,
  "Longitude": 3.0,
  "Description": "sample string 4",
  "DepartmentID": 5,
  "PostedOn": "sample string 6",
  "Username": "sample string 7",
  "Address": "sample string 8",
  "NearbyPlace": "sample string 9"
}

application/xml, text/xml

Sample:
<Alert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 8</Address>
  <AlertID>1</AlertID>
  <DepartmentID>5</DepartmentID>
  <Description>sample string 4</Description>
  <Latitude>2</Latitude>
  <Longitude>3</Longitude>
  <NearbyPlace>sample string 9</NearbyPlace>
  <PostedOn>sample string 6</PostedOn>
  <Username>sample string 7</Username>
</Alert>

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 'Alert'.

Response Information

Resource Description

utblMstAlerts
NameDescriptionTypeAdditional information
AlertID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Description

string

None.

DepartmentID

integer

None.

PostedOn

date

None.

Username

string

None.

Address

string

None.

NearbyPlace

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AlertID": 1,
  "Latitude": 2.0,
  "Longitude": 3.0,
  "Description": "sample string 4",
  "DepartmentID": 5,
  "PostedOn": "2017-12-12T13:33:28.3665669+05:30",
  "Username": "sample string 7",
  "Address": "sample string 8",
  "NearbyPlace": "sample string 9"
}

application/xml, text/xml

Sample:
<utblMstAlerts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 8</Address>
  <AlertID>1</AlertID>
  <DepartmentID>5</DepartmentID>
  <Description>sample string 4</Description>
  <Latitude>2</Latitude>
  <Longitude>3</Longitude>
  <NearbyPlace>sample string 9</NearbyPlace>
  <PostedOn>2017-12-12T13:33:28.3665669+05:30</PostedOn>
  <Username>sample string 7</Username>
</utblMstAlerts>