GET Census/{countryID}

Get all census data of a country

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CountryCensusModel
NameDescriptionTypeAdditional information
CountryCensusID

integer

None.

CountryID

integer

None.

AnswerID

integer

None.

Percentage

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CountryCensusID": 1,
    "CountryID": 2,
    "AnswerID": 3,
    "Percentage": 4.0
  },
  {
    "CountryCensusID": 1,
    "CountryID": 2,
    "AnswerID": 3,
    "Percentage": 4.0
  }
]

text/html

Sample:
[{"CountryCensusID":1,"CountryID":2,"AnswerID":3,"Percentage":4.0},{"CountryCensusID":1,"CountryID":2,"AnswerID":3,"Percentage":4.0}]

application/xml, text/xml

Sample:
<ArrayOfCountryCensusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Common">
  <CountryCensusModel>
    <AnswerID>3</AnswerID>
    <CountryCensusID>1</CountryCensusID>
    <CountryID>2</CountryID>
    <Percentage>4</Percentage>
  </CountryCensusModel>
  <CountryCensusModel>
    <AnswerID>3</AnswerID>
    <CountryCensusID>1</CountryCensusID>
    <CountryID>2</CountryID>
    <Percentage>4</Percentage>
  </CountryCensusModel>
</ArrayOfCountryCensusModel>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.