openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FDT_RFC_GET_SEARCH_TREE:
    post:
      tags:
      - FDT_RFC_EXPR_SEARCH_TREE
      summary: Gets the data from search tree for display in the UI
      operationId: /rfc/FDT_RFC_GET_SEARCH_TREE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_ID:
                  type: string
                  maxLength: 32
                  description: 'FDT: Universal Unique Identifier'
                IV_TIMESTAMP:
                  type: integer
                  format: int64
                  description: 'FDT: Time Stamp'
                ET_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: 'FDT: Universal Unique Identifier'
                      DISPLAY_NAME:
                        type: string
                        maxLength: 80
                        description: 'FDT: Display Name for RFC'
                      OBJECT_TYPE:
                        type: string
                        maxLength: 2
                        description: 'FDT: Object Type  enumValues: DO=Data Object,FU=Function,RS=Ruleset,EX=Expression,FI=Filter,AP=Application,CA=Catalog,ET=Expression Type'
                        enum:
                        - DO
                        - FU
                        - RS
                        - EX
                        - FI
                        - AP
                        - CA
                        - ET
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGTEXT:
                        type: string
                        maxLength: 250
                        description: 'FDT RFC: Message text'
                      SOURCE:
                        type: string
                        maxLength: 100
                        description: 'FDT RFC: Source(Code) of an error'
                ET_SEARCH_TREE_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      PARENT:
                        type: integer
                        format: int64
                        description: 'FDT: ID of a node in a tree'
                      SEQNR:
                        type: integer
                        format: int64
                        description: 'FDT: Sequence number'
                      CHILD:
                        type: integer
                        format: int64
                        description: 'FDT: ID of a node in a tree'
                      CONDITION_ID:
                        type: string
                        maxLength: 32
                        description: 'FDT: Universal Unique Identifier'
                      CONDITION_STRING:
                        type: string
                        maxLength: 80
                        description: 'FDT: Short string for RFC-Services'
                      RESULT_ID:
                        type: string
                        maxLength: 32
                        description: 'FDT: Universal Unique Identifier'
                      RESULT_STRING:
                        type: string
                        maxLength: 80
                        description: 'FDT: Short string for RFC-Services'
                      IS_LEAF:
                        type: string
                        maxLength: 1
                        description: 'Data element for domain BOOLE: TRUE (=''X'') and FALSE (='' '')  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
              required:
              - IV_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_IS_MULTIPLE_MATCH:
                    type: string
                    maxLength: 1
                    description: 'Data element for domain BOOLE: TRUE (=''X'') and FALSE (='' '')'
                  EV_RESULT_DO:
                    type: string
                    maxLength: 32
                    description: 'FDT: Universal Unique Identifier'
                  EV_RESULT_DO_NAME:
                    type: string
                    maxLength: 80
                    description: 'FDT: Display Name for RFC'
                  ET_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 32
                          description: 'FDT: Universal Unique Identifier'
                        DISPLAY_NAME:
                          type: string
                          maxLength: 80
                          description: 'FDT: Display Name for RFC'
                        OBJECT_TYPE:
                          type: string
                          maxLength: 2
                          description: 'FDT: Object Type  enumValues: DO=Data Object,FU=Function,RS=Ruleset,EX=Expression,FI=Filter,AP=Application,CA=Catalog,ET=Expression Type'
                          enum:
                          - DO
                          - FU
                          - RS
                          - EX
                          - FI
                          - AP
                          - CA
                          - ET
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGTEXT:
                          type: string
                          maxLength: 250
                          description: 'FDT RFC: Message text'
                        SOURCE:
                          type: string
                          maxLength: 100
                          description: 'FDT RFC: Source(Code) of an error'
                  ET_SEARCH_TREE_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        PARENT:
                          type: integer
                          format: int64
                          description: 'FDT: ID of a node in a tree'
                        SEQNR:
                          type: integer
                          format: int64
                          description: 'FDT: Sequence number'
                        CHILD:
                          type: integer
                          format: int64
                          description: 'FDT: ID of a node in a tree'
                        CONDITION_ID:
                          type: string
                          maxLength: 32
                          description: 'FDT: Universal Unique Identifier'
                        CONDITION_STRING:
                          type: string
                          maxLength: 80
                          description: 'FDT: Short string for RFC-Services'
                        RESULT_ID:
                          type: string
                          maxLength: 32
                          description: 'FDT: Universal Unique Identifier'
                        RESULT_STRING:
                          type: string
                          maxLength: 80
                          description: 'FDT: Short string for RFC-Services'
                        IS_LEAF:
                          type: string
                          maxLength: 1
                          description: 'Data element for domain BOOLE: TRUE (=''X'') and FALSE (='' '')  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
