GET api/Streets?areaname={areaname}

Gets a list of active streets

Requires Authorization

Request Information

URI Parameters

NameDescriptionTypeAdditional information
areaname

Optional parameter. If specified returns all streets that belongs to submitted area otherwise it returns all streets.

string

Default value is an empty string

Body Parameters

None.

Response Information

Resource Description

A IHttpActionResult with streets

Response codes


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

Street
NameDescriptionTypeAdditional information
StreetName

Name of the street Example: A P Sjöbergs Väg

string

None.

Wkt

string

None.

Response Formats

application/json, text/json

Sample:
{
  "StreetName": "sample string 4",
  "Wkt": "sample string 5"
}

application/xml, text/xml

Sample:
<Street xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO">
  <StreetName>sample string 4</StreetName>
  <Wkt>sample string 5</Wkt>
</Street>