openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_SET_TAXONOMY:
    post:
      tags:
      - TREX_ARW_TAXONOMY
      summary: Set a Taxonomy
      operationId: /rfc/TREX_ARW_SET_TAXONOMY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Sprache
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC Destination
                TAXONOMY_NAME:
                  type: string
                  format: byte
                  description: Attribut (eines Index)
                QUERY_ENTRY:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: Attribute Name
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      ROWTYPE:
                        type: string
                        format: byte
                        description: ''
                      OPERATOR:
                        type: string
                        format: byte
                        description: ''
                      CONTENT_TYPE:
                        type: string
                        format: byte
                        description: ''
                      TERM_ACTION:
                        type: string
                        format: byte
                        description: ''
                      TERM_WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_WIDTH:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_ORDER:
                        type: integer
                        format: int64
                        description: ''
                      FUZZY_SIMILARITY:
                        type: integer
                        format: int64
                        description: ''
                      RANK_METHOD:
                        type: integer
                        format: int64
                        description: ''
                      SEARCH_FLAG:
                        type: integer
                        format: int64
                        description: ''
                      QUERY_COUNT:
                        type: integer
                        format: int64
                        description: ''
                      NODE_COUNT:
                        type: integer
                        format: int64
                        description: ''
                TAXONOMY_TERM:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUTE:
                        type: string
                        format: byte
                        description: ''
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      OPERATOR:
                        type: string
                        format: byte
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      COUNTER:
                        type: integer
                        format: int64
                        description: ''
                TAXONOMY_TREE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: string
                        format: byte
                        description: ''
                      NODE_NAME:
                        type: string
                        format: byte
                        description: ''
                      PARENT_ID:
                        type: string
                        format: byte
                        description: ''
                      PARENT_WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      COUNTER:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
              - LANGUAGE
              - RFC_DESTINATION
              - TAXONOMY_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Returncode
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Returntext
                  QUERY_ENTRY:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: Attribute Name
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        ROWTYPE:
                          type: string
                          format: byte
                          description: ''
                        OPERATOR:
                          type: string
                          format: byte
                          description: ''
                        CONTENT_TYPE:
                          type: string
                          format: byte
                          description: ''
                        TERM_ACTION:
                          type: string
                          format: byte
                          description: ''
                        TERM_WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_WIDTH:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_ORDER:
                          type: integer
                          format: int64
                          description: ''
                        FUZZY_SIMILARITY:
                          type: integer
                          format: int64
                          description: ''
                        RANK_METHOD:
                          type: integer
                          format: int64
                          description: ''
                        SEARCH_FLAG:
                          type: integer
                          format: int64
                          description: ''
                        QUERY_COUNT:
                          type: integer
                          format: int64
                          description: ''
                        NODE_COUNT:
                          type: integer
                          format: int64
                          description: ''
                  TAXONOMY_TERM:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUTE:
                          type: string
                          format: byte
                          description: ''
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        OPERATOR:
                          type: string
                          format: byte
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  TAXONOMY_TREE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: string
                          format: byte
                          description: ''
                        NODE_NAME:
                          type: string
                          format: byte
                          description: ''
                        PARENT_ID:
                          type: string
                          format: byte
                          description: ''
                        PARENT_WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        COUNTER:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
