GET api/area/areadataset/{id}?searchterm={searchterm}

Gets Areas by areadataset

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The Areadataset - e.g. 'Kommune'

string

Required

searchterm

Optional search on Name - add wildcard for substring: sunnd*

string

Required

Body Parameters

None.

Response Information

Resource Description

A list of AreaViewModel

Collection of AreaViewModel
NameDescriptionTypeAdditional information
Bbox

UTM 33 bounding box

string

None.

Dataset

Area type

string

None.

GoogleMercatorBbox

Google Mercator bounding box

string

None.

Id

The Fid feature Id of the Area

string

None.

Name

Area Name

string

None.

ParentFid

Parent Fid of municipalities

string

None.

Response Formats

text/javascript

Sample:
([{"Bbox":"sample string 1","Dataset":"sample string 2","GoogleMercatorBbox":"sample string 3","Id":"sample string 4","Name":"sample string 5","ParentFid":"sample string 6"},{"Bbox":"sample string 1","Dataset":"sample string 2","GoogleMercatorBbox":"sample string 3","Id":"sample string 4","Name":"sample string 5","ParentFid":"sample string 6"}]);

application/json, text/json

Sample:
[
  {
    "Bbox": "sample string 1",
    "Dataset": "sample string 2",
    "GoogleMercatorBbox": "sample string 3",
    "Id": "sample string 4",
    "Name": "sample string 5",
    "ParentFid": "sample string 6"
  },
  {
    "Bbox": "sample string 1",
    "Dataset": "sample string 2",
    "GoogleMercatorBbox": "sample string 3",
    "Id": "sample string 4",
    "Name": "sample string 5",
    "ParentFid": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAreaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Artskart.UI.Models">
  <AreaViewModel>
    <Bbox>sample string 1</Bbox>
    <Dataset>sample string 2</Dataset>
    <GoogleMercatorBbox>sample string 3</GoogleMercatorBbox>
    <Id>sample string 4</Id>
    <Name>sample string 5</Name>
    <ParentFid>sample string 6</ParentFid>
  </AreaViewModel>
  <AreaViewModel>
    <Bbox>sample string 1</Bbox>
    <Dataset>sample string 2</Dataset>
    <GoogleMercatorBbox>sample string 3</GoogleMercatorBbox>
    <Id>sample string 4</Id>
    <Name>sample string 5</Name>
    <ParentFid>sample string 6</ParentFid>
  </AreaViewModel>
</ArrayOfAreaViewModel>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Sample:
Will return an Excel worksheet fileresult. Generate by using accept header or add '?format=excel' to request url.