POST api/Alert
Request Information
URI Parameters
None.
Body Parameters
AlertName | Description | Type | Additional 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:
Response Information
Resource Description
utblMstAlertsName | Description | Type | Additional 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": "2019-12-13T08:36:50.3511696+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>2019-12-13T08:36:50.3511696+05:30</PostedOn> <Username>sample string 7</Username> </utblMstAlerts>