GET api/municipality/forcounty?id={id}
Hämtar alla kommuner för ett visst län
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of MunicipalityDTO| Name | Description | Type | Additional 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>