#%RAML 1.0 version: v1 title: American Flights API types: AmericanFlight: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flight-data-type/1.0.1/AmericanFlightDataType.raml traits: client-id-required: queryParameters: client_id: type: string client_secret: type: string /flights: is: [client-id-required] get: queryParameters: destination: required: false enum: - SFO - LAX - CLE responses: 200: body: application/json: type: AmericanFlight[] example: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flights-example/1.0.1/AmericanFlightsExample.raml post: is: [client-id-required] body: application/json: type: AmericanFlight example: !include examples/AmericanFlightNoIDExample.raml responses: 201: body: application/json: example: message: Flight added (but not really) /flights/{ID}: get: is: [client-id-required] responses: 200: body: application/json: type: AmericanFlight example: !include examples/AmericanFlightExample.raml delete: is: [client-id-required] responses: 200: body: application/json: example: message: Flight deleted (but not really) put: is: [client-id-required] body: application/json: type: AmericanFlight example: !include examples/AmericanFlightNoIDExample.raml responses: 200: body: application/json: example: message: Flight updated (but not really)