GET api/municipality/forcounties?ids={ids}

Hämtar alla kommuner för ett visst län

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ids

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MunicipalityDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

CountyId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 1",
    "countyId": 3
  },
  {
    "id": 1,
    "name": "sample string 1",
    "countyId": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfMunicipality xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Municipality>
    <CountyId>3</CountyId>
    <Id>1</Id>
    <Name>sample string 1</Name>
  </Municipality>
  <Municipality>
    <CountyId>3</CountyId>
    <Id>1</Id>
    <Name>sample string 1</Name>
  </Municipality>
</ArrayOfMunicipality>