Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

yunathan51/Smiles-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

Smiles API

⚠️ Notice: The API now returns HTTP 406 Not Acceptable, meaning this application no longer works. (07/2025)

This application is built with Spring Boot to search for flights based on specific criteria such as departure airport, arrival airport, departure date, and the number of passengers.

Project Structure

  • BackendSmilesApplication: Main class to start the application.
  • FlightDTO: DTO representing flight information.
  • FlightController: Controller handling HTTP requests for flight searches.
  • FlightService: Service layer responsible for searching for flights based on the provided criteria.

Endpoints

GET /search

Searches for flights based on the provided parameters.

Parameters:

  • departureAirport (String): The departure airport (IATA acronym).
  • arrivalAirport (String): The arrival airport (IATA acronym).
  • departureTime (String): The departure date.
  • passengers (Integer): The number of passengers (number of adults only).

Response: A list of FlightDto objects containing flight information.

Example Request: GET /search?departureAirport=GRU&arrivalAirport=FLN&departureTime=2024年08月20日&passengers=2

Example Response:

{
 "departureAirport": "GRU",
 "arrivalAirport": "FLN",
 "departureTime": "06:10",
 "arrivalTime": "11:55",
 "passengers": 1,
 "miles": 107500.0,
 "costTaxInBRL": 31.44 
}

This application only works for domestic flights within Brazil.

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /