Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #%RAML 1.0
- title: American Flights API
- types:
- AmericanFlight: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flight-data-type/1.0.1/AmericanFlightDataType.raml
- /flights:
- description: flight records from the database
- get:
- description: retrieve record(s) from the database
- queryParameters:
- destination:
- required: false
- enum:
- - LAX
- - CLE
- - SFO
- responses:
- 200:
- body:
- application/json:
- type: AmericanFlight[]
- examples: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flights-example/1.0.1/AmericanFlightsExample.raml
- post:
- description: add a record to the database
- /{ID}:
- get:
- description: retrieve one record matching ID
- responses:
- 200:
- body:
- application/json:
- type: AmericanFlight
- examples: !include /examples/AmericanFlightExample.raml
- delete:
- put:
Advertisement
Add Comment
Please, Sign In to add comment