Skip to content

An API that makes web scraping on Latam Airlines to get all tickets and show in endpoints

Notifications You must be signed in to change notification settings

MatheusVict/Fly-Ticket-Api

Repository files navigation

Airline Tickets API

Retrieve airline tickets from different integrations

Requirements

Technologies/Frameworks

Start

To start the application, execute a Gradle Wrapper run task.

./gradlew run
curl --request GET \
--url 'http://localhost/retrieve-solicitations'

Endpoints

REST

  • GET /retrieve-solicitations
Response
{
  "cheapestTickets": [
    {
      "company": "LATAM Airlines Brasil",
      "origin": "FLN",
      "destination": "GRU",
      "date": "01-09-2022",
      "price": 1031.48
    },
    {
      "company": "LATAM Airlines Brasil",
      "origin": "SDU",
      "destination": "CGH",
      "date": "01-10-2022",
      "price": 446.83
    }
  ],
  "summary": {
    "error": [
      "Could not extract tickets for SAO to FLN"
    ]
  }
}

Tests

./gradlew test

About

An API that makes web scraping on Latam Airlines to get all tickets and show in endpoints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages