Giter Club home page Giter Club logo

tokigamecodetest's Introduction

Flight Search API

Spring MVC based RESTful API to search over available flights.

Tools

  • Eclipse 2019-03
  • Postman
  • Spring Boot 2.1.4
  • Java 8

Installation

1. Install Eclipse IDE

Linux :

$ sudo apt install default-jre
$ sudo snap install --classic eclipse

Windows :

Download installation here

2. Install Postman

Linux :

$ sudo apt install snapd snapd-xdg-open

Windows :

Download installation here

How to Use

[ {
  "id" : "18ac80f2-2c73-4cf6-b7cf-0ce1b2e6f3b0",
  "departure" : "Reconquista",
  "arrival" : "Caballito",
  "arrivalTime" : "2019-04-07 02:57:24",
  "departureTime" : "2019-04-07 02:09:29"
} ]

Parameters

Paramater Key Parameter Value Brief Explanation
departure (String) , ex : "Reconquista" Show by departure location name
arrival (String) , ex : "Perez" Show by arrival location name
departureTime (String), ex : "2019-04-07 04:57:06" Show all that has departure time less than or equal with departureTime
arrivalTime (String), ex : "2019-04-07 04:57:06" Show all that has Arrival time less than or equal with arrivalTime
pagination (integer), ex : 1,2,... Show the page and each page has maximum 10 datas
sortColumn (String), ex : "arrival" Option to sort with specific column name
sortOrder (String), ex : "asc", "desc" Option to sort by ascending or descending
filter (String), ex : "cheap", "business" Option to filter data by the source (Cheap, Business)

Notes

  • This is the source to get the real-time data : cheap and business. However, for training purpose I used the json that can be accessed in cheap and business. Another reason is the data in real-time source is changing fast, such that sometime you will get empty response when you give specific key as the parameter.
  • To change the source, you can change it in src\main\java\com\sbfs\api\model\FlightAggregation.java and change the value of "URL_CHEAP" and "URL_BUSINESS".

tokigamecodetest's People

Contributors

ikhwan12 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.