Open-source NDC Sandbox for testing/development purposes.
Check out here more about the scope of this project.
- Planned NDC Messages:
- AirShopping (supported)
- FlightPrice (supported)
- SeatAvailability (in progress)
- ServiceList
- ServicePrice
- OrderCreate
- OrderList
- OrderRetrieve
- OrderCancel
- Ruby 2.2.2
- ActiveRecord 5
- PostgreSQL (tested on 9.x and 10.x)
- Redis
- Git clone this repo.
- Install dependencies with
bundle install
- Update
config/database.yml
with your particular settings. - Run
rake db:create
- Run
rake db:migrate
- Run
rake db:fixtures:load[ID]
(ID is the id of a valid fixtures set. By default it will load 'FA') - Run
rackup
to start a local server (by default runs on port 9292) - Test the API by validating a NDC payload, here is a curl example:
curl -X POST -H "Content-Type: application/xml" --data @AirShopping.xml "http://ndc-sandbox.dev/api/ndc/"
Note: if ion step 3 you get an error saying the database is not available, try creating it manually for both environments (dev and test) with:
$ createdb db_name
Any kind of software contribution, bug-report, and feedback is welcome and greatly appreciated.
- Codebase started from grape-skeleton
- Thanks to AirGateway who contributed actively to this project
- Thanks to Flyiin who contributed to this project