POST api/Airport/Search

Request Information

URI Parameters

None.

Body Parameters

AirportSearchParm
NameDescriptionTypeAdditional information
auth

string

None.

Name

string

None.

CityName

string

None.

PostalCode

string

None.

CountryID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "auth": "sample string 1",
  "Name": "sample string 2",
  "CityName": "sample string 3",
  "PostalCode": "sample string 4",
  "CountryID": "sample string 5"
}

application/xml, text/xml

Sample:
<AirportSearchParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <CityName>sample string 3</CityName>
  <CountryID>sample string 5</CountryID>
  <Name>sample string 2</Name>
  <PostalCode>sample string 4</PostalCode>
  <auth>sample string 1</auth>
</AirportSearchParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AirportSearchResp
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

ErrorMessage

string

None.

Airports

Collection of AirportItem

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "ErrorMessage": "sample string 2",
  "Airports": [
    {
      "AirportID": "sample string 1",
      "Name": "sample string 2",
      "City": "sample string 3",
      "CountryID": "sample string 4",
      "IATACode": "sample string 5",
      "ICAOCode": "sample string 6",
      "IsMajorAirport": true,
      "Latitude": 1.0,
      "Longitude": 1.0,
      "WeatherStationCode": "sample string 8",
      "StateProvID": "sample string 9",
      "FAACode": "sample string 10",
      "PostalCode": "sample string 11",
      "Street1": "sample string 12",
      "Street2": "sample string 13",
      "WeatherZone": "sample string 14",
      "IATACityCode": "sample string 15",
      "TimezoneID": "sample string 16"
    },
    {
      "AirportID": "sample string 1",
      "Name": "sample string 2",
      "City": "sample string 3",
      "CountryID": "sample string 4",
      "IATACode": "sample string 5",
      "ICAOCode": "sample string 6",
      "IsMajorAirport": true,
      "Latitude": 1.0,
      "Longitude": 1.0,
      "WeatherStationCode": "sample string 8",
      "StateProvID": "sample string 9",
      "FAACode": "sample string 10",
      "PostalCode": "sample string 11",
      "Street1": "sample string 12",
      "Street2": "sample string 13",
      "WeatherZone": "sample string 14",
      "IATACityCode": "sample string 15",
      "TimezoneID": "sample string 16"
    }
  ]
}

application/xml, text/xml

Sample:
<AirportSearchResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <Airports>
    <AirportItem>
      <AirportID>sample string 1</AirportID>
      <City>sample string 3</City>
      <CountryID>sample string 4</CountryID>
      <FAACode>sample string 10</FAACode>
      <IATACityCode>sample string 15</IATACityCode>
      <IATACode>sample string 5</IATACode>
      <ICAOCode>sample string 6</ICAOCode>
      <IsMajorAirport>true</IsMajorAirport>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <Name>sample string 2</Name>
      <PostalCode>sample string 11</PostalCode>
      <StateProvID>sample string 9</StateProvID>
      <Street1>sample string 12</Street1>
      <Street2>sample string 13</Street2>
      <TimezoneID>sample string 16</TimezoneID>
      <WeatherStationCode>sample string 8</WeatherStationCode>
      <WeatherZone>sample string 14</WeatherZone>
    </AirportItem>
    <AirportItem>
      <AirportID>sample string 1</AirportID>
      <City>sample string 3</City>
      <CountryID>sample string 4</CountryID>
      <FAACode>sample string 10</FAACode>
      <IATACityCode>sample string 15</IATACityCode>
      <IATACode>sample string 5</IATACode>
      <ICAOCode>sample string 6</ICAOCode>
      <IsMajorAirport>true</IsMajorAirport>
      <Latitude>1</Latitude>
      <Longitude>1</Longitude>
      <Name>sample string 2</Name>
      <PostalCode>sample string 11</PostalCode>
      <StateProvID>sample string 9</StateProvID>
      <Street1>sample string 12</Street1>
      <Street2>sample string 13</Street2>
      <TimezoneID>sample string 16</TimezoneID>
      <WeatherStationCode>sample string 8</WeatherStationCode>
      <WeatherZone>sample string 14</WeatherZone>
    </AirportItem>
  </Airports>
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
</AirportSearchResp>