OpenNDC :: NDC Sandbox
Open-source NDC Sandbox for testing/development purposes.
- Planned NDC Messages:
- AirShopping (supported)
- FlightPrice (supported)
- SeatAvailability (in progress)
- Ruby 2.2.2
- ActiveRecord 5
- PostgreSQL (tested on 9.x and 10.x)
- Git clone this repo.
- Install dependencies with
config/database.ymlwith your particular settings.
rake db:fixtures:load[ID](ID is the id of a valid fixtures set. By default it will load 'FA')
rackupto 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.