components:
  schemas:
    AmenitiesDecriptorSummary:
      properties:
        descriptor:
          type: string
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
      required:
      - id
      - descriptor
      type: object
    AmenitiesDisplayTextSummary:
      properties:
        display_text:
          type: string
        exists:
          $ref: '#/components/schemas/Exists3'
        id:
          description: Unique numerical identifier
          example: 1
          type: string
      required:
      - id
      - display_text
      type: object
    AmenityResp:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AmenityRespData'
          type: array
        linked:
          $ref: '#/components/schemas/AmenityRespLinked'
        meta:
          $ref: '#/components/schemas/AmenityRespMeta'
        uuid:
          type: string
      required:
      - uuid
      - meta
      - data
      type: object
    AmenityRespAircraft:
      description: The Aircraft type/quality amenity covers helicopters to the newest
        wide-body jets. Aircraft with above-average amenities, such as higher cabin
        pressure, higher humidity and larger windows, are viewed as more favorable
        than those without these amenities. Full set of values available via the [amenities
        /aircrafts endpoint]
      properties:
        cabin_pressure:
          description: An assessment of the aircraft's cabin pressure
          enum:
          - n/a
          - normal
          - enhanced
          - unpressurized
          type: string
        display_text:
          description: Up to 30-character string
          example:
          - A320 (narrowbody)
          type: string
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        model:
          description: 'The type/size of equipment operated (note: bus and train are
            available for codeshare land connections)'
          type: string
        quality:
          $ref: '#/components/schemas/Quality'
          description: An assessment of the aircraft `cabin_pressure` and `window_size`
        type:
          description: 'The type/size of equipment operated (note: bus and train are
            available for codeshare land connections)'
          enum:
          - bus
          - helicopter
          - jumbo
          - larger regional jet
          - n/a
          - narrowbody
          - smaller regional jet
          - train
          - turbo/prop
          - turbo or prop
          - widebody
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
        window_size:
          description: An assessment of the aircraft's window size
          enum:
          - n/a
          - standard
          - larger
          - smaller
          type: string
      required:
      - id
      type: object
    AmenityRespBeverage:
      properties:
        alcoholic_cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge for alcoholic beverages
        display_text:
          description: Up to 30-character string (English)
          example: Alcohol & beverages available
          type: string
        exists:
          $ref: '#/components/schemas/Exists'
          description: Whether beverages exist on the flight in the cabin
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        nonalcoholic_cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge for nonalcoholic beverages
        quality:
          $ref: '#/components/schemas/Quality'
          description: An assessment of the type of beverage available
        type:
          description: The type of beverage available
          enum:
          - alcoholic
          - nonalcoholic
          - premium alcoholic
          - alcoholic and nonalcoholic
          - n/a
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
      required:
      - id
      type: object
    AmenityRespData:
      properties:
        id:
          description: Unique numerical identifier
          example: 1
          type: string
        links:
          items:
            $ref: '#/components/schemas/AmenityRespDataLinks'
          type: object
      required:
      - id
      type: object
    AmenityRespDataLinks:
      properties:
        aircraft_summary:
          type: string
        amenity:
          type: integer
        entertainment_summary:
          type: string
        fresh_food_summary:
          type: string
        layout_summary:
          type: string
        legs:
          items:
            type: string
          type: array
        power_summary:
          type: string
        score:
          type: integer
        seat_summary:
          type: string
        segments:
          items:
            type: string
          type: array
        speed:
          type: integer
        wifi_summary:
          type: string
      type: object
    AmenityRespEntertainment:
      properties:
        cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge to access any available entertainment
        display_text:
          description: Up to 30-character string (English)
          example: On demand entertainment
          type: string
        exists:
          $ref: '#/components/schemas/Exists'
          description: One or more entertainment types available
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        offerings:
          $ref: '#/components/schemas/AmenityRespEntertainmentOfferingsReq'
          description: If an aircraft has more than one entertainment type available  the
            groups are separated using `and`. If the entertainment types are uncertain  the
            groups are separated using `or`  including all possibilities.
        quality:
          $ref: '#/components/schemas/Quality'
          description: An assessment of the best entertainment type available
        type:
          description: The best entertainment type available
          enum:
          - livetv
          - loop
          - n/a
          - none
          - on-demand
          - overhead
          - pre-download
          - seatback
          - streaming
          - tablet
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
      required:
      - id
      type: object
    AmenityRespEntertainmentOfferings:
      properties:
        content_type:
          description: The type of content available for an entertainment offering
          enum:
          - avod
          - iptv
          - livetv
          - movies
          - n/a
          - tvshows
          type: string
        delivery_medium:
          description: How the entertainment is delivered to the passenger for an
            entertainment offering
          enum:
          - in-seat
          - n/a
          - none
          - overhead
          - pre-download
          - streaming
          - tablet
          type: string
        selection_type:
          description: How the content is selected for an entertainment offering
          enum:
          - n/a
          - on-demand
          - live
          - loop
          type: string
      type: object
    AmenityRespEntertainmentOfferingsReq:
      oneOf:
      - $ref: '#/components/schemas/AmenityRespEntertainmentOfferings'
      - type: string
      - items:
          $ref: '#/components/schemas/AmenityRespEntertainmentOfferingsReq'
        type: array
    AmenityRespFreshFood:
      description: The food amenity covers whether food any sort of available on board
        each flight and flight cabin. Available food is separated into snacks and  premium
        snacks, as well as light meals and full multi-course meals. If food is available,
        the type of food offered is determined, the cost is evaluated, and the need
        to pre-order before flight is assessed.
      properties:
        cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge for food
        display_text:
          description: Up to 30-character string (English)
          example: Premium dinner provided
          type: string
        exists:
          $ref: '#/components/schemas/Exists'
          description: Food exists on the flight in the cabin
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        quality:
          $ref: '#/components/schemas/Quality'
          description: An assessment of the type of food available
        type:
          description: The type of food available
          enum:
          - n/a
          - snack
          - premium snack
          - light meal
          - meal
          - premium meal
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
      required:
      - id
      type: object
    AmenityRespLayout:
      properties:
        direct_aisle_access:
          $ref: '#/components/schemas/Exists'
        display_text:
          description: Up to 30-character string (English)
          example: More space (3-3-3)
          type: string
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        quality:
          $ref: '#/components/schemas/Quality'
        row_layout:
          description: The most prevalent configuration of seats in the cabin for
            the aircraft subfleet operated
          example: 3-3-3
          type: string
        type:
          enum:
          - angled
          - angled pods
          - forward-backward
          - forward
          - herringbone
          - reverse herringbone
          - middle seat free
          - n/a
          - staggered herringbone
          - staggered
          - v-shaped
          - yin-yang
          - layered
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
      required:
      - id
      type: object
    AmenityRespLeg:
      properties:
        id:
          description: Unique numerical identifier
          example: 1
          type: string
        links:
          items:
            $ref: '#/components/schemas/AmenityRespLegLinks'
          type: object
      required:
      - id
      - links
      type: object
    AmenityRespLegLinks:
      properties:
        segments:
          items:
            type: string
          type: array
      type: object
    AmenityRespLinked:
      properties:
        aircraft_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        aircrafts:
          items:
            $ref: '#/components/schemas/AmenityRespAircraft'
          type: array
        amenities:
          items:
            $ref: '#/components/schemas/AmenitiesDecriptorSummary'
          type: array
        beverages:
          items:
            $ref: '#/components/schemas/AmenityRespBeverage'
          type: array
        entertainment_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        entertainments:
          items:
            $ref: '#/components/schemas/AmenityRespEntertainment'
          type: array
        fresh_food_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        fresh_foods:
          items:
            $ref: '#/components/schemas/AmenityRespFreshFood'
          type: array
        layout_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        layouts:
          items:
            $ref: '#/components/schemas/AmenityRespLayout'
          type: array
        legs:
          items:
            $ref: '#/components/schemas/AmenityRespLeg'
          type: array
        power_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        powers:
          items:
            $ref: '#/components/schemas/AmenityRespPower'
          type: array
        seat_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        seats:
          items:
            $ref: '#/components/schemas/AmenityRespSeat'
          type: array
        segments:
          items:
            $ref: '#/components/schemas/AmenityRespSegment'
          type: array
        speeds:
          items:
            $ref: '#/components/schemas/AmenitiesDecriptorSummary'
          type: array
        wifi_summaries:
          items:
            $ref: '#/components/schemas/AmenitiesDisplayTextSummary'
          type: array
        wifis:
          items:
            $ref: '#/components/schemas/AmenityRespWifi'
          type: array
      type: object
    AmenityRespMeta:
      properties:
        unmatched_keys:
          items:
            type: string
          type: array
      required:
      - unmatched_keys
      type: object
    AmenityRespPower:
      properties:
        chance:
          $ref: '#/components/schemas/Exists'
          description: Indicates that the Power type is offered on some but not all
            of the aircraft in the subfleet scheduled to operate the flight. There
            is a chance that this Power type may not be available depending on the
            airline's flight operations
        cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge to access the power outlets
        display_text:
          description: Up to 30-character string (English)
          example: Power & USB outlets
          type: string
        distribution:
          description: Indicates whether power is provided in some or all rows
          enum:
          - all
          - n/a
          - some
          type: string
        exists:
          $ref: '#/components/schemas/Exists'
          description: Power (110-volt AC outlet and/or USB port) exists in some or
            all rows
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        multiple_at_seat:
          $ref: '#/components/schemas/Exists'
          description: Indicates whether there are 2 or more USB ports or power outlets,
            or at least 1 of each
        power_outlet:
          $ref: '#/components/schemas/Exists'
          description: 110-volt AC outlet is available
        quality:
          $ref: '#/components/schemas/Quality'
          description: An assessment of the power type available
        type:
          description: The type of power outlet available
          enum:
          - adapter
          - n/a
          - none
          - power
          - power/usb
          - usb
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
        usb_port:
          $ref: '#/components/schemas/Exists'
          description: USB port is available
      required:
      - id
      type: object
    AmenityRespSeat:
      properties:
        display_text:
          description: Up to 30-character string (English)
          example: Above average legroom (32&quot;)
          type: string
        flatness:
          description: An assessment of whether the seat reclines a full 180°, at
            an angle or doesn't lie flat (premium cabins only)
          enum:
          - angle flat
          - full flat
          - n/a
          - not flat
          type: string
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        legroom:
          description: An assessment of the legroom available
          enum:
          - less
          - more
          - n/a
          - standard
          type: string
        pitch:
          description: The number of inches of seat pitch (distance from any point
            on one seat to the same point on the seat in front of or behind it)
          example: '32'
          type: string
        quality:
          $ref: '#/components/schemas/Quality'
        type:
          description: The seat type available
          enum:
          - n/a
          - above average legroom
          - angle flat seat
          - below average legroom
          - cradle recliner
          - full flat pod
          - full flat seat
          - middle seat free
          - private suite
          - recliner seat
          - skycouch
          - standard legroom
          - open suite
          - unknown
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
        width:
          description: An assessment of the seat width (economy only)
          enum:
          - n/a
          - standard
          - wider
          type: string
      required:
      - id
      type: object
    AmenityRespSegment:
      properties:
        id:
          description: Unique numerical identifier
          example: 1
          type: string
        links:
          items:
            $ref: '#/components/schemas/AmenityRespSegmentLinks'
          type: object
        mk_flt_no:
          type: string
      required:
      - id
      type: object
    AmenityRespSegmentLinks:
      properties:
        aircraft:
          type: integer
        beverage:
          type: integer
        entertainment:
          type: integer
        fresh_food:
          type: integer
        layout:
          type: integer
        power:
          type: integer
        seat:
          type: integer
        wifi:
          type: integer
      type: object
    AmenityRespWifi:
      properties:
        chance:
          description: Indicates that Wi-Fi is offered on some but not all of the
            aircraft in the subfleet scheduled to operate the flight. There is a chance
            that this Wi-Fi type may not be available depending on the airline's flight
            operations. `Full` means that Wi-Fi is offered on 100% of a the subfleet,
            whereas `some` means there is a low percentage of Wi-Fi installed across
            the subfleet
          enum:
          - n/a
          - some
          - good
          - very good
          - full
          type: string
        connectivity_type:
          description: Indicates passengers can use any devices equipped with Wi-Fi,
            e.g. a laptop computer, smartphone or tablet. The `cellular_roaming` value
            indicates that only smartphones may be used, not in the Wi-Fi mode, and
            that roaming charges may apply
          enum:
          - GSM_WiFi
          - n/a
          - wifi
          - cellular_roaming
          - Trial
          type: string
        cost:
          $ref: '#/components/schemas/Cost'
          description: Whether there is a charge to access Wi-Fi
        coverage:
          description: Indicates whether Wi-Fi is available fully, partially or for
            none of the flight based on coverage area
          enum:
          - full
          - n/a
          - none
          - partial
          type: string
        display_text:
          description: Up to 30-character string (English)
          example: Better Wi-Fi
          type: string
        exists:
          $ref: '#/components/schemas/Exists'
          description: Indicates that `wifi` or `cellular_roaming` exists on the flight
        id:
          description: Unique numerical identifier
          example: 1
          type: integer
        performance:
          description: Indicates speed/bandwidth
          enum:
          - basic
          - better
          - best
          - n/a
          type: string
        quality:
          $ref: '#/components/schemas/Quality'
        type:
          description: The type of connectivity available
          enum:
          - chance
          - n/a
          - none
          - smartphone_data_roam
          - wifi
          type: string
        updated_at:
          description: Indicates when the data element was last updated
          example: '2020-11-04T09:20:22Z'
          type: string
      required:
      - id
      type: object
    Cost:
      enum:
      - free
      - free or paid
      - paid
      - n/a
      type: string
    Error:
      properties:
        href:
          type: string
        title:
          type: string
        uuid:
          type: string
      required:
      - uuid
      - title
      - href
      type: object
    Errors:
      items:
        $ref: '#/components/schemas/Error'
      type: array
    Exists:
      description: Indicates whether a certain property exists and is applicable for
        the given Amenity.
      enum:
      - 'yes'
      - 'no'
      - n/a
      type: string
    Exists3:
      description: Used to summarize if an Amenity is available for all, some or none
        of the flights in a leg.
      enum:
      - 'yes'
      - 'no'
      - partial
      type: string
    Quality:
      enum:
      - n/a
      - better
      - standard
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
info:
  description: Consolidated Retailing API
  title: Consolidated Retailing API
  version: 0.0.12
openapi: 3.0.3
paths:
  /amenities/aircrafts:
    get:
      deprecated: true
      operationId: aircrafts_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespAircraft'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - aircrafts
  /amenities/beverages:
    get:
      deprecated: true
      operationId: beverages_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespBeverage'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - beverages
  /amenities/entertainments:
    get:
      deprecated: true
      operationId: entertainments_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespEntertainment'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - entertainments
  /amenities/fresh_foods:
    get:
      deprecated: true
      operationId: fresh_foods_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespFreshFood'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - fresh_foods
  /amenities/itineraries:
    get:
      deprecated: true
      operationId: amenity_itineraries_get
      parameters:
      - allowReserved: true
        in: query
        name: ids
        schema:
          type: string
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AmenityResp'
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - legs
    post:
      operationId: amenity_itineraries_post
      parameters:
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                ids:
                  type: string
                include:
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AmenityResp'
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - legs
  /amenities/layouts:
    get:
      deprecated: true
      operationId: layouts_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespLayout'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - layouts
  /amenities/legs:
    get:
      deprecated: true
      operationId: amenity_legs_get
      parameters:
      - allowReserved: true
        in: query
        name: ids
        schema:
          type: string
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AmenityResp'
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - legs
    post:
      operationId: amenity_legs_post
      parameters:
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                ids:
                  type: string
                include:
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AmenityResp'
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - legs
  /amenities/powers:
    get:
      deprecated: true
      operationId: powers_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespPower'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - powers
  /amenities/schema:
    get:
      operationId: get_schema
      responses:
        '200':
          content:
            application/yaml:
              schema:
                type: string
          description: The Amenities BC OpenAPI schema
      summary: The schema of the Amenities backwards-compatible API
  /amenities/seats:
    get:
      deprecated: true
      operationId: seats_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespSeat'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - seats
  /amenities/segments:
    get:
      deprecated: true
      operationId: amenity_segments_get
      parameters:
      - allowReserved: true
        in: query
        name: ids
        schema:
          type: string
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/AmenityRespSegment'
                    type: array
                  linked:
                    $ref: '#/components/schemas/AmenityRespLinked'
                  uuid:
                    type: string
                required:
                - uuid
                - data
                type: object
          description: amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - segments
    post:
      operationId: amenity_segments_post
      parameters:
      - allowReserved: true
        in: query
        name: include
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                ids:
                  type: string
                include:
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/AmenityRespSegment'
                    type: array
                  linked:
                    $ref: '#/components/schemas/AmenityRespLinked'
                  uuid:
                    type: string
                required:
                - uuid
                - data
                type: object
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - segments
  /amenities/wifis:
    get:
      deprecated: true
      operationId: wifis_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AmenityRespWifi'
                type: array
          description: Amenities API response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported language
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Access token is missing or invalid
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Not found
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Unsupported media
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
          description: Processing the query has failed at some point by returning
            an error
      security:
      - bearerAuth: []
      summary: Amenities API endpoint for backwards compatibility
      tags:
      - wifis
servers:
- url: https://prod.apis.atpco.net/routehappy/consolidated
