GET api/ProtectedArea/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ProtectedAreaViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Address | string |
None. |
|
| Area | string |
None. |
|
| Description | string |
None. |
|
| Photo | string |
None. |
|
| WardId | integer |
Required |
|
| LocalLevelId | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Address": "sample string 3",
"Area": "sample string 4",
"Description": "sample string 5",
"Photo": "sample string 6",
"WardId": 1,
"LocalLevelId": 7,
"Latitude": 1.0,
"Longitude": 1.0
}
text/xml
Sample:
<ProtectedAreaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Address>sample string 3</Address> <Area>sample string 4</Area> <Description>sample string 5</Description> <Id>1</Id> <Latitude>1</Latitude> <LocalLevelId>7</LocalLevelId> <Longitude>1</Longitude> <Name>sample string 2</Name> <Photo>sample string 6</Photo> <WardId>1</WardId> </ProtectedAreaViewModel>