GET Api/Countries

Pobiera listÄ™ wszystkich obiektów Country

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

lista wszystkich obiektów Country w bazie danych

Collection of CountryDto
NameDescriptionTypeAdditional information
CountryId

integer

Required

Name

string

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "countryId": 1,
    "name": "sample string 2"
  },
  {
    "countryId": 1,
    "name": "sample string 2"
  }
]

multipart/form-data

Sample:
[{"countryId":1,"name":"sample string 2"},{"countryId":1,"name":"sample string 2"}]

application/xml, text/xml

Sample:
<ArrayOfCountryDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CountryDto>
    <CountryId>1</CountryId>
    <Name>sample string 2</Name>
  </CountryDto>
  <CountryDto>
    <CountryId>1</CountryId>
    <Name>sample string 2</Name>
  </CountryDto>
</ArrayOfCountryDto>