openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_FLCONN_GETLIST:
    post:
      tags:
      - SAPBC_BAPI_SFLCONN
      summary: Find list of flight connections
      operationId: /rfc/BAPI_FLCONN_GETLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AIRLINE:
                  type: string
                  maxLength: 3
                  description: Airline code
                DESTINATION_FROM:
                  type: object
                  properties:
                    AIRPORTID:
                      type: string
                      maxLength: 3
                      description: Airport Code
                    CITY:
                      type: string
                      maxLength: 20
                      description: City
                    COUNTR:
                      type: string
                      maxLength: 3
                      description: Country Indic.
                    COUNTR_ISO:
                      type: string
                      maxLength: 2
                      description: ISO country code
                DESTINATION_TO:
                  type: object
                  properties:
                    AIRPORTID:
                      type: string
                      maxLength: 3
                      description: Airport Code
                    CITY:
                      type: string
                      maxLength: 20
                      description: City
                    COUNTR:
                      type: string
                      maxLength: 3
                      description: Country Indic.
                    COUNTR_ISO:
                      type: string
                      maxLength: 2
                      description: ISO country code
                MAX_ROWS:
                  type: integer
                  format: int32
                  description: Maximum Number of Lines of Hits
                TRAVELAGENCY:
                  type: integer
                  format: int64
                  description: Travel Agency Number
                DATE_RANGE:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        format: date
                        description: Flight date
                      HIGH:
                        type: string
                        format: date
                        description: Flight date
                EXTENSION_IN:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 30
                        description: Structure name of  BAPI table extension
                      VALUEPART1:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART2:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART3:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART4:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                EXTENSION_OUT:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTURE:
                        type: string
                        maxLength: 30
                        description: Structure name of  BAPI table extension
                      VALUEPART1:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART2:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART3:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                      VALUEPART4:
                        type: string
                        maxLength: 240
                        description: Data part of BAPI extension parameter
                FLIGHT_CONNECTION_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      AGENCYNUM:
                        type: integer
                        format: int64
                        description: Travel Agency Number
                      FLIGHTCONN:
                        type: integer
                        format: int64
                        description: Flight connection number at travel agency
                      FLIGHTDATE:
                        type: string
                        format: date
                        description: Flight date
                      AIRPORTFR:
                        type: string
                        maxLength: 3
                        description: Departure airport
                      CITYFROM:
                        type: string
                        maxLength: 20
                        description: Departure city
                      AIRPORTTO:
                        type: string
                        maxLength: 3
                        description: Destination airport
                      CITYTO:
                        type: string
                        maxLength: 20
                        description: Arrival city
                      NUMHOPS:
                        type: integer
                        format: int64
                        description: Number of legs
                      DEPTIME:
                        type: string
                        maxLength: 6
                        description: Departure time
                      ARRTIME:
                        type: string
                        maxLength: 6
                        description: Arrival time
                      ARRDATE:
                        type: string
                        format: date
                        description: Arrival date
                      FLIGHTTIME:
                        type: integer
                        format: int32
                        description: Flight time
              required:
              - TRAVELAGENCY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DATE_RANGE:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          format: date
                          description: Flight date
                        HIGH:
                          type: string
                          format: date
                          description: Flight date
                  EXTENSION_IN:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Structure name of  BAPI table extension
                        VALUEPART1:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART2:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART3:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART4:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                  EXTENSION_OUT:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTURE:
                          type: string
                          maxLength: 30
                          description: Structure name of  BAPI table extension
                        VALUEPART1:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART2:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART3:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                        VALUEPART4:
                          type: string
                          maxLength: 240
                          description: Data part of BAPI extension parameter
                  FLIGHT_CONNECTION_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        AGENCYNUM:
                          type: integer
                          format: int64
                          description: Travel Agency Number
                        FLIGHTCONN:
                          type: integer
                          format: int64
                          description: Flight connection number at travel agency
                        FLIGHTDATE:
                          type: string
                          format: date
                          description: Flight date
                        AIRPORTFR:
                          type: string
                          maxLength: 3
                          description: Departure airport
                        CITYFROM:
                          type: string
                          maxLength: 20
                          description: Departure city
                        AIRPORTTO:
                          type: string
                          maxLength: 3
                          description: Destination airport
                        CITYTO:
                          type: string
                          maxLength: 20
                          description: Arrival city
                        NUMHOPS:
                          type: integer
                          format: int64
                          description: Number of legs
                        DEPTIME:
                          type: string
                          maxLength: 6
                          description: Departure time
                        ARRTIME:
                          type: string
                          maxLength: 6
                          description: Arrival time
                        ARRDATE:
                          type: string
                          format: date
                          description: Arrival date
                        FLIGHTTIME:
                          type: integer
                          format: int32
                          description: Flight time
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
