POST api/Region/GetDistricts
Ilce Listesi
Request Information
URI Parameters
None.
Body Parameters
GetDistrictsInput| Name | Description | Type | Additional information |
|---|---|---|---|
| CityId | integer |
None. |
|
| Keyword | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CityId": 1,
"Keyword": "sample string 1"
}
text/xml
Sample:
<GetDistrictsInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BiCay.Services.RegionServices.Dtos"> <CityId>1</CityId> <Keyword>sample string 1</Keyword> </GetDistrictsInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of DistrictDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
text/xml
Sample:
<ArrayOfDistrictDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BiCay.Services.RegionServices.Dtos">
<DistrictDto>
<Id>1</Id>
<Name>sample string 2</Name>
</DistrictDto>
<DistrictDto>
<Id>1</Id>
<Name>sample string 2</Name>
</DistrictDto>
</ArrayOfDistrictDto>