GET api/GreenLocations?LocType={LocType}

List of Orgin or Destination based on LocType

Request Information

URI Parameters

NameDescriptionTypeAdditional information
LocType

O - for Origin, D- for destination

string

Default value is O

Body Parameters

None.

Response Information

Resource Description

List of Carrier [1=Carrier]

Collection of GreenLocation
NameDescriptionTypeAdditional information
UNLoCode

string

None.

City

string

None.

Country

string

None.

StateProvince

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UNLoCode": "sample string 1",
    "City": "sample string 2",
    "Country": "sample string 3",
    "StateProvince": "sample string 4"
  },
  {
    "UNLoCode": "sample string 1",
    "City": "sample string 2",
    "Country": "sample string 3",
    "StateProvince": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfGreenLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeminiShippers.Common.RESTfulGreenable">
  <GreenLocation>
    <City>sample string 2</City>
    <Country>sample string 3</Country>
    <StateProvince>sample string 4</StateProvince>
    <UNLoCode>sample string 1</UNLoCode>
  </GreenLocation>
  <GreenLocation>
    <City>sample string 2</City>
    <Country>sample string 3</Country>
    <StateProvince>sample string 4</StateProvince>
    <UNLoCode>sample string 1</UNLoCode>
  </GreenLocation>
</ArrayOfGreenLocation>