Closed travis-mann closed 7 months ago
Updated the JSON response body sending to frontend. Added the sort and order options for filtering.
Example Call: POST http://localhost:8080/api/flights/submitForm/1
{
"departAirport":"Atlanta (ATL)",
"arriveAirport":"Tucson (TUS)",
"departDate":"2023-01-01",
"connectionNum":1,
"sort":"Depart",
"order":"DESC"
}
Updates to flight search API (https://github.com/Mee42/cs509-project/issues/3) based on 02/26/2024 discussion.
Note: Round trips will be implemented on the front end by calling the flight search API twice: once with the depature date and a second time with the airports reversed and the return date.