openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXIDEMO_AIRL_FLIGHT_CHECKAVAIL:
    post:
      tags:
      - SXIDEMO_AIRLINE
      operationId: /rfc/SXIDEMO_AIRL_FLIGHT_CHECKAVAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FLIGHT_KEY:
                  type: object
                  properties:
                    AIRLINEID:
                      type: string
                      maxLength: 3
                      description: Airline Code
                    CONNECTID:
                      type: integer
                      format: int64
                      description: Flight Connection Number
                    FLIGHTDATE:
                      type: string
                      format: date
                      description: Flight date
              required:
              - FLIGHT_KEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FLIGHT_AVAILABILITY:
                    type: object
                    properties:
                      ECONOMAX:
                        type: integer
                        format: int32
                        description: 'Maximum capacity in economy class  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
                      ECONOFREE:
                        type: integer
                        format: int32
                        description: 'Free seats in category  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
                      BUSINMAX:
                        type: integer
                        format: int32
                        description: 'Maximum capacity in business class  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
                      BUSINFREE:
                        type: integer
                        format: int32
                        description: 'Free seats in category  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
                      FIRSTMAX:
                        type: integer
                        format: int32
                        description: 'Maximum capacity in first class  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
                      FIRSTFREE:
                        type: integer
                        format: int32
                        description: 'Free seats in category  enumValues: 0=Whole numbers'
                        enum:
                        - '0'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
