GET api/{website}/Countries

Get a list of all the countries in the database

Request Information

URI Parameters

NameDescriptionTypeAdditional information
website

Name of the website to filter out data

string

Default value is IBNET

Body Parameters

None.

Response Information

Resource Description

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"
}

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"}

application/xml, text/xml

Sample:
<CountriesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IBNetAPI.ViewModels">
  <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>