POST api/Flight/Search?showDetails={showDetails}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| showDetails | boolean |
Default value is False |
Body Parameters
SearchCallOfFlightSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PageSize | integer |
None. |
|
| From | integer |
None. |
|
| Parameter | FlightSearchModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"PageSize": 1,
"From": 2,
"Parameter": {
"Id": 1,
"AirlineId": 1,
"FlightNumber": "sample string 2",
"DepartureAirportId": 1,
"DestinationAirportId": 1,
"IsLocal": true,
"Active": true,
"FlightId": 1
}
}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json
Sample:
{
"Flights": [
{
"Id": 1,
"AirlineId": 2,
"FlightNumber": "A0554",
"DepartureAirportId": 1,
"DestinationAirportId": 1,
"IsLocal": true,
"Active": true,
"FlightDays": [
{
"Id": 1,
"FlightId": 1,
"DayId": 2
},
{
"Id": 1,
"FlightId": 1,
"DayId": 2
}
]
},
{
"Id": 1,
"AirlineId": 2,
"FlightNumber": "A0554",
"DepartureAirportId": 1,
"DestinationAirportId": 1,
"IsLocal": true,
"Active": true,
"FlightDays": [
{
"Id": 1,
"FlightId": 1,
"DayId": 2
},
{
"Id": 1,
"FlightId": 1,
"DayId": 2
}
]
}
],
"ErrorMessages": []
}
text/json
Sample:
{
"Flights": [],
"ErrorMessages": [
"All errors recorded here"
]
}