POST api/FlightBooking/InsertOrignalFlightDeparture

Request Information

URI Parameters

None.

Body Parameters

Collection of FDMIROPFlightsOriginalDeparture
NameDescriptionTypeAdditional information
Id

integer

None.

PNR

string

None.

CarrierCode

string

None.

FlightNo

string

None.

OriginSector

string

None.

ArrivalSector

string

None.

OriginDepartureDate

date

None.

EntryDate

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "PNR": "sample string 2",
    "CarrierCode": "sample string 3",
    "FlightNo": "sample string 4",
    "OriginSector": "sample string 5",
    "ArrivalSector": "sample string 6",
    "OriginDepartureDate": "2021-06-23T02:39:42.1773652+05:30",
    "EntryDate": "2021-06-23T02:39:42.1773652+05:30"
  },
  {
    "Id": 1,
    "PNR": "sample string 2",
    "CarrierCode": "sample string 3",
    "FlightNo": "sample string 4",
    "OriginSector": "sample string 5",
    "ArrivalSector": "sample string 6",
    "OriginDepartureDate": "2021-06-23T02:39:42.1773652+05:30",
    "EntryDate": "2021-06-23T02:39:42.1773652+05:30"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFDMIROPFlightsOriginalDeparture xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlightDisruptionDAL.DBContext">
  <FDMIROPFlightsOriginalDeparture>
    <ArrivalSector>sample string 6</ArrivalSector>
    <CarrierCode>sample string 3</CarrierCode>
    <EntryDate>2021-06-23T02:39:42.1773652+05:30</EntryDate>
    <FlightNo>sample string 4</FlightNo>
    <Id>1</Id>
    <OriginDepartureDate>2021-06-23T02:39:42.1773652+05:30</OriginDepartureDate>
    <OriginSector>sample string 5</OriginSector>
    <PNR>sample string 2</PNR>
  </FDMIROPFlightsOriginalDeparture>
  <FDMIROPFlightsOriginalDeparture>
    <ArrivalSector>sample string 6</ArrivalSector>
    <CarrierCode>sample string 3</CarrierCode>
    <EntryDate>2021-06-23T02:39:42.1773652+05:30</EntryDate>
    <FlightNo>sample string 4</FlightNo>
    <Id>1</Id>
    <OriginDepartureDate>2021-06-23T02:39:42.1773652+05:30</OriginDepartureDate>
    <OriginSector>sample string 5</OriginSector>
    <PNR>sample string 2</PNR>
  </FDMIROPFlightsOriginalDeparture>
</ArrayOfFDMIROPFlightsOriginalDeparture>

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 'List`1'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>