vincentlowe

American Flights RAML

Jan 24th, 2022
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. #%RAML 1.0
  2. title: American Flights API
  3.  
  4. types:
  5. AmericanFlight: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flight-data-type/1.0.1/AmericanFlightDataType.raml
  6.  
  7. /flights:
  8. description: flight records from the database
  9. get:
  10. description: retrieve record(s) from the database
  11. queryParameters:
  12. destination:
  13. required: false
  14. enum:
  15. - LAX
  16. - CLE
  17. - SFO
  18. responses:
  19. 200:
  20. body:
  21. application/json:
  22. type: AmericanFlight[]
  23. examples: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flights-example/1.0.1/AmericanFlightsExample.raml
  24. post:
  25. description: add a record to the database
  26.  
  27. /{ID}:
  28. get:
  29. description: retrieve one record matching ID
  30. responses:
  31. 200:
  32. body:
  33. application/json:
  34. type: AmericanFlight
  35. examples: !include /examples/AmericanFlightExample.raml
  36. delete:
  37. put:
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment