Skip to content

A simple flight price checker API with express.js on top of kiwi.com API

Notifications You must be signed in to change notification settings

bboulahdid/flight-price-checker-api

Repository files navigation

Flight price checker API

Build Status

A simple flight price checker API with express.js on top of kiwi API

Getting started

To install the project's dependencies :

yarn

or npm install if you're old and miserable

To run tests :

yarn test

To build everything & start the server :

yarn start

API :

This mini project provides 2 APIs :

  • GET /api/status: it returns some information about the project (name, version, description)
  • GET /api/flights: it returns all flights, if there is any, between two countries. It needs two required query string parameters :
    • from: the ISO 3166 country code of the departure country. e.g. 'FR' for France.
    • to: a comma separated string of ISO 3166 country codes of the arrival countries. e.g. 'FR,US' for France & USA.

TODO :

  • Handle uncaughtException and unhandledRejection errors

About

A simple flight price checker API with express.js on top of kiwi.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published