GET address/getallcountries

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CountryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

Name

string

None.

Flag

string

None.

AreaId

integer

None.

CountryTax

decimal number

None.

CurrencySymbol

string

None.

SupportMail

string

None.

StateCount

integer

None.

States

Collection of State

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "code": "sample string 1",
    "name": "sample string 2",
    "flag": "sample string 3",
    "areaId": 1,
    "countryTax": 1.0,
    "currencySymbol": "sample string 4",
    "supportMail": "sample string 5",
    "stateCount": 6,
    "states": [
      {
        "id": 1,
        "code": "sample string 1",
        "name": "sample string 2",
        "countryTax": 3.0,
        "currencySymbol": "sample string 4",
        "parent": 1,
        "supportMail": "sample string 5"
      },
      {
        "id": 1,
        "code": "sample string 1",
        "name": "sample string 2",
        "countryTax": 3.0,
        "currencySymbol": "sample string 4",
        "parent": 1,
        "supportMail": "sample string 5"
      }
    ]
  },
  {
    "id": 1,
    "code": "sample string 1",
    "name": "sample string 2",
    "flag": "sample string 3",
    "areaId": 1,
    "countryTax": 1.0,
    "currencySymbol": "sample string 4",
    "supportMail": "sample string 5",
    "stateCount": 6,
    "states": [
      {
        "id": 1,
        "code": "sample string 1",
        "name": "sample string 2",
        "countryTax": 3.0,
        "currencySymbol": "sample string 4",
        "parent": 1,
        "supportMail": "sample string 5"
      },
      {
        "id": 1,
        "code": "sample string 1",
        "name": "sample string 2",
        "countryTax": 3.0,
        "currencySymbol": "sample string 4",
        "parent": 1,
        "supportMail": "sample string 5"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCountryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Clickoapp2.Domain.Models">
  <CountryViewModel>
    <AreaId>1</AreaId>
    <Code>sample string 1</Code>
    <CountryTax>1</CountryTax>
    <CurrencySymbol>sample string 4</CurrencySymbol>
    <Flag>sample string 3</Flag>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <StateCount>6</StateCount>
    <States>
      <State>
        <Code>sample string 1</Code>
        <CountryTax>3</CountryTax>
        <CurrencySymbol>sample string 4</CurrencySymbol>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <Parent>1</Parent>
        <SupportMail>sample string 5</SupportMail>
      </State>
      <State>
        <Code>sample string 1</Code>
        <CountryTax>3</CountryTax>
        <CurrencySymbol>sample string 4</CurrencySymbol>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <Parent>1</Parent>
        <SupportMail>sample string 5</SupportMail>
      </State>
    </States>
    <SupportMail>sample string 5</SupportMail>
  </CountryViewModel>
  <CountryViewModel>
    <AreaId>1</AreaId>
    <Code>sample string 1</Code>
    <CountryTax>1</CountryTax>
    <CurrencySymbol>sample string 4</CurrencySymbol>
    <Flag>sample string 3</Flag>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <StateCount>6</StateCount>
    <States>
      <State>
        <Code>sample string 1</Code>
        <CountryTax>3</CountryTax>
        <CurrencySymbol>sample string 4</CurrencySymbol>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <Parent>1</Parent>
        <SupportMail>sample string 5</SupportMail>
      </State>
      <State>
        <Code>sample string 1</Code>
        <CountryTax>3</CountryTax>
        <CurrencySymbol>sample string 4</CurrencySymbol>
        <Id>1</Id>
        <Name>sample string 2</Name>
        <Parent>1</Parent>
        <SupportMail>sample string 5</SupportMail>
      </State>
    </States>
    <SupportMail>sample string 5</SupportMail>
  </CountryViewModel>
</ArrayOfCountryViewModel>