GET api/{website}/ReportingCountries2

Get the selected country by providing an id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
website

Name of the website to filter out data

string

Required

Body Parameters

None.

Response Information

Resource Description

ReportingCountriesViewModel
NameDescriptionTypeAdditional information
CountryId

integer

None.

Country

string

None.

DisplayName

string

None.

Year

integer

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CountryId": 1,
  "Country": "sample string 2",
  "DisplayName": "sample string 3",
  "Year": 4,
  "Count": 5
}

text/html

Sample:
{"CountryId":1,"Country":"sample string 2","DisplayName":"sample string 3","Year":4,"Count":5}

application/xml, text/xml

Sample:
<ReportingCountriesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IBNetAPI.ViewModels">
  <Count>5</Count>
  <Country>sample string 2</Country>
  <CountryId>1</CountryId>
  <DisplayName>sample string 3</DisplayName>
  <Year>4</Year>
</ReportingCountriesViewModel>