POST api/MovementSwap/GetSwapAvailability

Documentation for 'GetSwapAvailability'.

Request Information

Parameters

NameDescriptionAdditional information
movement
Documentation for 'movement'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "sample string 1": {},
  "sample string 3": {},
  "sample string 5": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>sample string 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 3</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 5</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'Dictionary`2'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "SwapAvailable": true,
  "ArrivalAvailable": true,
  "ArrivalSwapTargetCount": 3,
  "ArrivalViewName": "sample string 4",
  "DepartureAvailable": true,
  "DepartureSwapTargetCount": 6,
  "DepartureViewName": "sample string 7"
}

application/xml, text/xml

Sample:
<SwapAvailabilityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SITA.AMS.Web.Msg.Config">
  <ArrivalAvailable>true</ArrivalAvailable>
  <ArrivalSwapTargetCount>3</ArrivalSwapTargetCount>
  <ArrivalViewName>sample string 4</ArrivalViewName>
  <DepartureAvailable>true</DepartureAvailable>
  <DepartureSwapTargetCount>6</DepartureSwapTargetCount>
  <DepartureViewName>sample string 7</DepartureViewName>
  <SwapAvailable>true</SwapAvailable>
</SwapAvailabilityDto>