Skip to content

MarioFronza/airline-tickets-api

Repository files navigation

Airline Tickets API

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

Heroku

Test requesting your solicitations using heroku.

curl --request GET \
--url 'https://airline-tickets-api.herokuapp.com/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

Retrieve airline tickets from different integrations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published