forked from TUIHackfridays/tuise-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflightinfo.yaml
1 lines (1 loc) · 2.09 KB
/
flightinfo.yaml
1
# this is an example of the Uber API# as a demonstration of an API spec in YAMLswagger: '2.0'info: title: TUIse FlightInfo API description: Fetch Info about flights version: "1.0.0"# the domain of the servicehost: api.uber.com# array of all schemes that your API supportsschemes: - https# will be prefixed to all pathsbasePath: /v1produces: - application/jsonpaths: /flights: get: summary: gets flights description: | Flights with TUI parameters: - name: CustomerID in: query description: The ID of the customer who is standing next to TUIse. required: false type: integer - name: Booknumber in: query description: The booknumber required: false type: integer tags: - flights responses: 200: description: matching flights schema: type: array items: $ref: '#/definitions/FlightInfo' default: description: Unexpected error schema: $ref: '#/definitions/Error'definitions: FlightInfo: type: object properties: flight_id: type: string description: Unique identifier representing a flight description: type: string description: Description of product. display_name: type: string description: Display name of product. capacity: type: string description: Capacity of product. For example, 4 people. image: type: string description: Image URL representing the product. Error: type: object properties: code: type: integer format: int32 message: type: string fields: type: string