openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_THESAURUS_TERMS:
    post:
      tags:
      - TREX_RFC_TM
      summary: Get thesaurus terms
      operationId: /rfc/TREX_RFC_GET_THESAURUS_TERMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  default: EN
                  description: Language
                MAX_RESULTS:
                  type: integer
                  format: int64
                  default: 1
                  description: Host:Port
                TERM_ID:
                  type: string
                  format: byte
                  description: Host:Port
                TERM_WEIGHT:
                  type: integer
                  format: int64
                  description: Host:Port
                THESAURUS_RELATION:
                  type: array
                  items:
                    type: object
                    properties:
                      RELATION:
                        type: string
                        format: byte
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      ROLE:
                        type: string
                        format: byte
                        description: ''
                THESAURUS_TERM:
                  type: array
                  items:
                    type: object
                    properties:
                      TERM_ID:
                        type: string
                        format: byte
                        description: ''
                      TERM_NAME:
                        type: string
                        format: byte
                        description: ''
                      RELATION:
                        type: string
                        format: byte
                        description: ''
                      ROLE:
                        type: string
                        format: byte
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
              - LANGUAGE
              - MAX_RESULTS
              - TERM_ID
      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
                  THESAURUS_RELATION:
                    type: array
                    items:
                      type: object
                      properties:
                        RELATION:
                          type: string
                          format: byte
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        ROLE:
                          type: string
                          format: byte
                          description: ''
                  THESAURUS_TERM:
                    type: array
                    items:
                      type: object
                      properties:
                        TERM_ID:
                          type: string
                          format: byte
                          description: ''
                        TERM_NAME:
                          type: string
                          format: byte
                          description: ''
                        RELATION:
                          type: string
                          format: byte
                          description: ''
                        ROLE:
                          type: string
                          format: byte
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
