openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FLIGHT_LIST:
    post:
      tags:
      - WDR_DEMOS
      operationId: /rfc/FLIGHT_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CITYFROM:
                  type: string
                  maxLength: 20
                CITYTO:
                  type: string
                  maxLength: 20
                DATEFROM:
                  type: string
                  format: date
                DATETO:
                  type: string
                  format: date
                FLIGHT_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      CARRID:
                        type: string
                        maxLength: 3
                        description: Airline Code
                      CONNID:
                        type: integer
                        format: int64
                        description: Flight Connection Number
                      COUNTRYFR:
                        type: string
                        maxLength: 3
                        description: Country Key
                      CITYFROM:
                        type: string
                        maxLength: 20
                        description: Departure city
                      AIRPFROM:
                        type: string
                        maxLength: 3
                        description: Departure airport
                      COUNTRYTO:
                        type: string
                        maxLength: 3
                        description: Country Key
                      CITYTO:
                        type: string
                        maxLength: 20
                        description: Arrival city
                      AIRPTO:
                        type: string
                        maxLength: 3
                        description: Destination airport
                      FLTIME:
                        type: integer
                        format: int32
                        description: Flight time
                      DEPTIME:
                        type: string
                        maxLength: 6
                        description: Departure time
                      ARRTIME:
                        type: string
                        maxLength: 6
                        description: Arrival time
                      DISTANCE:
                        type: integer
                        format: int64
                        description: Distance
                      DISTID:
                        type: string
                        maxLength: 3
                        description: Mass unit of distance (kms, miles)
                      FLTYPE:
                        type: string
                        maxLength: 1
                        description: 'Flight type  enumValues: ""=Scheduled,X=Charter'
                        enum:
                        - ''
                        - X
                      PERIOD:
                        type: integer
                        format: int32
                        description: Arrival n day(s) later
                      FLDATE:
                        type: string
                        format: date
                        description: Flight date
              required:
              - CITYFROM
              - CITYTO
              - DATEFROM
              - DATETO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MSG:
                    type: string
                  FLIGHT_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        CARRID:
                          type: string
                          maxLength: 3
                          description: Airline Code
                        CONNID:
                          type: integer
                          format: int64
                          description: Flight Connection Number
                        COUNTRYFR:
                          type: string
                          maxLength: 3
                          description: Country Key
                        CITYFROM:
                          type: string
                          maxLength: 20
                          description: Departure city
                        AIRPFROM:
                          type: string
                          maxLength: 3
                          description: Departure airport
                        COUNTRYTO:
                          type: string
                          maxLength: 3
                          description: Country Key
                        CITYTO:
                          type: string
                          maxLength: 20
                          description: Arrival city
                        AIRPTO:
                          type: string
                          maxLength: 3
                          description: Destination airport
                        FLTIME:
                          type: integer
                          format: int32
                          description: Flight time
                        DEPTIME:
                          type: string
                          maxLength: 6
                          description: Departure time
                        ARRTIME:
                          type: string
                          maxLength: 6
                          description: Arrival time
                        DISTANCE:
                          type: integer
                          format: int64
                          description: Distance
                        DISTID:
                          type: string
                          maxLength: 3
                          description: Mass unit of distance (kms, miles)
                        FLTYPE:
                          type: string
                          maxLength: 1
                          description: 'Flight type  enumValues: ""=Scheduled,X=Charter'
                          enum:
                          - ''
                          - X
                        PERIOD:
                          type: integer
                          format: int32
                          description: Arrival n day(s) later
                        FLDATE:
                          type: string
                          format: date
                          description: Flight date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
