GET api/Country?CountryID={CountryID}

Api to Get Countries

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CountryID

integer

None.

Body Parameters

None.

Response Information

Resource Description

CountryResponseModel
NameDescriptionTypeAdditional information
CountryList

Collection of CountryDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "countryList": [
    {
      "countryID": 1,
      "name": "sample string 2",
      "twoLetterISO_Code": "sample string 3",
      "threeLetterISO_Code": "sample string 4"
    },
    {
      "countryID": 1,
      "name": "sample string 2",
      "twoLetterISO_Code": "sample string 3",
      "threeLetterISO_Code": "sample string 4"
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CountryResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Country">
  <Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
  <CountryList>
    <CountryDataModel>
      <CountryID>1</CountryID>
      <Name>sample string 2</Name>
      <ThreeLetterISO_Code>sample string 4</ThreeLetterISO_Code>
      <TwoLetterISO_Code>sample string 3</TwoLetterISO_Code>
    </CountryDataModel>
    <CountryDataModel>
      <CountryID>1</CountryID>
      <Name>sample string 2</Name>
      <ThreeLetterISO_Code>sample string 4</ThreeLetterISO_Code>
      <TwoLetterISO_Code>sample string 3</TwoLetterISO_Code>
    </CountryDataModel>
  </CountryList>
</CountryResponseModel>

multipart/form-data

Sample:
<CountryResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Country"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><CountryList><CountryDataModel><CountryID>1</CountryID><Name>sample string 2</Name><ThreeLetterISO_Code>sample string 4</ThreeLetterISO_Code><TwoLetterISO_Code>sample string 3</TwoLetterISO_Code></CountryDataModel><CountryDataModel><CountryID>1</CountryID><Name>sample string 2</Name><ThreeLetterISO_Code>sample string 4</ThreeLetterISO_Code><TwoLetterISO_Code>sample string 3</TwoLetterISO_Code></CountryDataModel></CountryList></CountryResponseModel>