GET States?idCountry={idCountry}&page={page}&pageSize={pageSize}

Gets all the states, represented as StateDto.

Request Information

URI Parameters

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

IdCountry

globally unique identifier

None.

Description

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "cc2b4af0-a6ff-4501-93f0-08556f51ea58",
    "IdCountry": "6d3c2ec4-560b-4f12-9bdb-83276fed9e02",
    "Description": "sample string 3"
  },
  {
    "Id": "cc2b4af0-a6ff-4501-93f0-08556f51ea58",
    "IdCountry": "6d3c2ec4-560b-4f12-9bdb-83276fed9e02",
    "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>cc2b4af0-a6ff-4501-93f0-08556f51ea58</Id>
    <IdCountry>6d3c2ec4-560b-4f12-9bdb-83276fed9e02</IdCountry>
  </StateDto>
  <StateDto>
    <Description>sample string 3</Description>
    <Id>cc2b4af0-a6ff-4501-93f0-08556f51ea58</Id>
    <IdCountry>6d3c2ec4-560b-4f12-9bdb-83276fed9e02</IdCountry>
  </StateDto>
</ArrayOfStateDto>