POST destination/countries

Request Information

URI Parameters

None.

Body Parameters

GenericRequest
NameDescriptionTypeAdditional information
sessionId

string

None.

ipAddress

string

None.

userAgent

string

None.

isMember

boolean

None.

loggingId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "sessionId": "sample string 1",
  "ipAddress": "sample string 2",
  "userAgent": "sample string 3",
  "isMember": true,
  "loggingId": "sample string 6"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Asterix.Common.Data.Json.InsertBookingLogRequest' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Asterix.Common.Data.Json.InsertBookingLogRequest' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GenericRequest'.

Response Information

Resource Description

CountryListResponse
NameDescriptionTypeAdditional information
countryList

Collection of Country

None.

status

Status

None.

timestamp

string

None.

sessionId

string

None.

processingTime

integer

None.

processId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "countryList": [
    {
      "countryId": 1,
      "countryCode": "sample string 2",
      "mapCountryCode": "sample string 3",
      "countryName": "sample string 4",
      "countryStandardCode": "sample string 5",
      "continentCode": "sample string 6",
      "mapContinentCode": "sample string 7"
    },
    {
      "countryId": 1,
      "countryCode": "sample string 2",
      "mapCountryCode": "sample string 3",
      "countryName": "sample string 4",
      "countryStandardCode": "sample string 5",
      "continentCode": "sample string 6",
      "mapContinentCode": "sample string 7"
    }
  ],
  "status": {
    "code": "sample string 1",
    "message": "sample string 2",
    "type": "sample string 3"
  },
  "timestamp": "sample string 1",
  "sessionId": "sample string 2",
  "processingTime": 3,
  "processId": "sample string 4"
}

application/xml, text/xml

Sample:
<CountryListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Asterix.Common.Data.Json">
  <ProcessId>sample string 4</ProcessId>
  <ProcessingTime>3</ProcessingTime>
  <SessionId>sample string 2</SessionId>
  <Status>
    <Code>sample string 1</Code>
    <Message>sample string 2</Message>
    <Type>sample string 3</Type>
  </Status>
  <Timestamp>sample string 1</Timestamp>
  <CountryList>
    <Country>
      <ContinentCode>sample string 6</ContinentCode>
      <CountryCode>sample string 2</CountryCode>
      <CountryId>1</CountryId>
      <CountryName>sample string 4</CountryName>
      <CountryStandardCode>sample string 5</CountryStandardCode>
      <MapContinentCode>sample string 7</MapContinentCode>
      <MapCountryCode>sample string 3</MapCountryCode>
    </Country>
    <Country>
      <ContinentCode>sample string 6</ContinentCode>
      <CountryCode>sample string 2</CountryCode>
      <CountryId>1</CountryId>
      <CountryName>sample string 4</CountryName>
      <CountryStandardCode>sample string 5</CountryStandardCode>
      <MapContinentCode>sample string 7</MapContinentCode>
      <MapCountryCode>sample string 3</MapCountryCode>
    </Country>
  </CountryList>
</CountryListResponse>