FlightPlanner
directory.dotnet build
to build the application.dotnet run
to start the application.http://localhost:5000
.GET /api/airports?search={search}
: Returns a list of airports that match the specified search term.POST /api/flights/search
: Searches for flights that match the specified criteria.GET /api/flights/{id}
: Returns the flight with the specified ID.GET /admin-api/flights/{id}
: Returns the flight with the specified ID.PUT /admin-api/flights
: Adds a new flight.DELETE /admin-api/flights/{id}
: Deletes the flight with the specified ID.POST /testing-api/clear
: Clears the list of flights.Airport
: Represents an airport.Flight
: Represents a flight.FlightSearch
: Represents a flight search request.AddFlightRequest
: Represents a request to add a new flight.PageResult
: Represents a page of search results.CustomerApiController
: Handles requests made by customers.AdminApiController
: Handles requests made by administrators.TestingApiController
: Handles requests related to testing.FlightStorage
class provides methods for adding, deleting, and searching for flights.ValidateSearch
class provides methods for validating flight search requests, and the ValidateFlight
class provides methods for validating requests to add new flights.Authorization
header of their requests.