Install node in your computer and the use the following fromt the backend
folder.
$ npm install
$ node server.js
GET /flightInfo/:booking_code
curl -XGET 'http://localhost:8080/flightInfo/267MRS'
This service responses the customer information by given last name
and first name
.
GET /customer?ln=:last_name&fn=:first_name
curl -XGET 'http://localhost:8080/customer?ln=Vielflieger&fn=Hannes'
GET /customer/:customer_id/address
:customer_id
can be acquire from customer information service, parameter ProfileID
.
curl -XGET 'http://localhost:8080/customer/cust_001/address'
GET /airportInfo/:airport_code
curl -XGET 'http://localhost:8080/airportInfo/FRA'
Search for locations by given Name
GET /locations?location=:location_name
The result is a list of possible matches (locations) where the user might pick one entry to perform a trip request with this location as origin or destination or to ask for a departure board or arrival board of this location (stops/stations only).
curl -XGET 'http://localhost:8080/locations?location=Frankfurt'
GET /nearbystops?originCoordLat=:LATITUDE&originCoordLong=:LONGITUD
For this example, it will response the nearby locations to HOLM.
curl -XGET 'http://localhost:8080/nearbystops?originCoordLat=50.056446&originCoordLong=8.592368'
This service will response the trip from the location corrdinates to the airport with given airport code.
GET /tripToAirport?originCoordLat=:LATITUDE&originCoordLong=:LONGITUD&airportCode=:AIRPORT_CODE
It will response all the possible trips from HOLM to FRA.
curl -XGET 'http://localhost:8080/tripToAirport?originCoordLat=50.056446&originCoordLong=8.592368&airportCode=FRA'
GET /trainStation?station=:STATION_NAME
http://localhost:8080/trainStation?station=Frankfurt
GET /departureSchedule?station_id=008096021&date=2016-03-06&time=07:02
curl -XGET 'http://localhost:8080/departureSchedule?station_id=008096021&date=2016-03-06&time=07:02'
GET /waitingperiod/checkin?airline=LH&flightnumber=400
GET /waitingperiod/security?airline=LH&flightnumber=400&date=2016-03-06
curl -XGET 'http://localhost:8080/waitingperiod/checkin?airline=LH&flightnumber=400'
curl -XGET 'http://localhost:8080/waitingperiod/security?airline=LH&flightnumber=400&date=2016-03-06'
GET /distance?start=Check-In%20A&end=Central%20Security-Check%20A
curl -XGET 'http://localhost:8080/distance?start=Check-In%20A&end=Central%20Security-Check%20A'