Code Monkey home page Code Monkey logo

flightoffers's Introduction

Flight Offers Test Data Generator
=================================

Play2 application to serve-up fake flight offer (availabilty) data for test purposes.
/login             -- POST credentials to receive an auth header
/fx/rate/CUR1/CUR1 -- return the FX rate between the two currencies (EUR, USD, GBP, TRY)
/availability/AIRLINE -- get availability from specified Airline (EI, BA, UA, TK)

The format of the data returned depends on the airline queried:
UA: XML
EI: JSON
TK: CSV:
  flightNumber,origin,destination,departureDate,arrivalDate,fare class1, fare class2, fare class3
BA: COBOL 80 column punched card format:
    DATA DIVISION.
    FILE SECTION.
    FD  AVAILABILITY
    01  FLIGHT
        05  OPERATOR              PIC X(2).
        05  FLIGHT-NB             PIC X(5).
        05  ORIGIN-AIRPORT        PIC X(4).
        05  DEST-AIRPORT          PIC X(4).
        05  DEPART-DT             PIC 9(10).
        05  ARRIVE-DT             PIC 9(10).
        05  FARE-CLASSES OCCURS 3 TIMES.
            07  TICKET            PIC 999V99.
            07  FEES              PIC 999V99.
            07  TAXES             PIC 999V99.

flightoffers's People

Contributors

sothach avatar

Stargazers

Fernando Abellán 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.