GET States?idCountry={idCountry}&page={page}&pageSize={pageSize}
Gets all the states, represented as StateDto.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| idCountry |
The ID of Country |
globally unique identifier |
Required |
| page |
The page (optional, 1 by default). |
integer |
Default value is 1 |
| pageSize |
The page size (optional, 50 by default). |
integer |
Default value is 50 |
Body Parameters
None.
Response Information
Resource Description
A collection of states.
Collection of StateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| IdCountry | globally unique identifier |
None. |
|
| Description | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "b72a3de9-de05-4e3d-bf42-ae3a5ad4c4c6",
"IdCountry": "80936a5a-1e15-4d3f-9d1d-99c597cfe1b9",
"Description": "sample string 3"
},
{
"Id": "b72a3de9-de05-4e3d-bf42-ae3a5ad4c4c6",
"IdCountry": "80936a5a-1e15-4d3f-9d1d-99c597cfe1b9",
"Description": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfStateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<StateDto>
<Description>sample string 3</Description>
<Id>b72a3de9-de05-4e3d-bf42-ae3a5ad4c4c6</Id>
<IdCountry>80936a5a-1e15-4d3f-9d1d-99c597cfe1b9</IdCountry>
</StateDto>
<StateDto>
<Description>sample string 3</Description>
<Id>b72a3de9-de05-4e3d-bf42-ae3a5ad4c4c6</Id>
<IdCountry>80936a5a-1e15-4d3f-9d1d-99c597cfe1b9</IdCountry>
</StateDto>
</ArrayOfStateDto>