vincentlowe icon

American Flights RAML

vincentlowe | PRO | 01/24/22 08:13:29 PM UTC | 0 ⭐ | 186 👁️ | Never ⏰ | []
text |

1.08 KB

|

None

|

0 👍

/

0 👎

#%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:
              

Comments