GET api/Areas?allareas={allareas}

Gets a list of active areas

Requires Authorization

Request Information

URI Parameters

NameDescriptionTypeAdditional information
allareas

If true returns all areas otherwise returns areas assigned to a signed in company.

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

A IHttpActionResult with areas

Response codes


200 Ok
401 Unauthorized
404 Not Found
500 Internal Server Error
503 Service Unavailable

Area
NameDescriptionTypeAdditional information
Name

Name of the area Example: Hyllie

string

None.

WKT

WKT Geometry in WKT (Well Known Text) format

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "WKT": "sample string 2"
}

application/xml, text/xml

Sample:
<Area xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO">
  <Name>sample string 1</Name>
  <WKT>sample string 2</WKT>
</Area>