GET api/{website}/Countries/{search}

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

search

Unique iditifier of the country

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CountriesViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Region_Id

integer

None.

Code

string

None.

WB_Country_Id

integer

None.

Currency_Symbol

string

None.

Name

string

None.

iso2code

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Region_Id": 2,
    "Code": "sample string 3",
    "WB_Country_Id": 1,
    "Currency_Symbol": "sample string 4",
    "Name": "sample string 5",
    "iso2code": "sample string 6"
  },
  {
    "Id": 1,
    "Region_Id": 2,
    "Code": "sample string 3",
    "WB_Country_Id": 1,
    "Currency_Symbol": "sample string 4",
    "Name": "sample string 5",
    "iso2code": "sample string 6"
  }
]

text/html

Sample:
[{"Id":1,"Region_Id":2,"Code":"sample string 3","WB_Country_Id":1,"Currency_Symbol":"sample string 4","Name":"sample string 5","iso2code":"sample string 6"},{"Id":1,"Region_Id":2,"Code":"sample string 3","WB_Country_Id":1,"Currency_Symbol":"sample string 4","Name":"sample string 5","iso2code":"sample string 6"}]

application/xml, text/xml

Sample:
<ArrayOfCountriesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IBNetAPI.ViewModels">
  <CountriesViewModel>
    <Code>sample string 3</Code>
    <Currency_Symbol>sample string 4</Currency_Symbol>
    <Id>1</Id>
    <Name>sample string 5</Name>
    <Region_Id>2</Region_Id>
    <WB_Country_Id>1</WB_Country_Id>
    <iso2code>sample string 6</iso2code>
  </CountriesViewModel>
  <CountriesViewModel>
    <Code>sample string 3</Code>
    <Currency_Symbol>sample string 4</Currency_Symbol>
    <Id>1</Id>
    <Name>sample string 5</Name>
    <Region_Id>2</Region_Id>
    <WB_Country_Id>1</WB_Country_Id>
    <iso2code>sample string 6</iso2code>
  </CountriesViewModel>
</ArrayOfCountriesViewModel>