openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_CALCULATE_CLUSTERS:
    post:
      tags:
      - TREX_ARW_TM
      summary: Calculate Clusters
      operationId: /rfc/TREX_ARW_CALCULATE_CLUSTERS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLUSTERING_ATTRIBUTE:
                  type: string
                  format: byte
                  description: Clustering attribut
                CLUSTERING_METHOD:
                  type: integer
                  format: int64
                  description: Clustering Method
                DOC_SEL_QUERY:
                  type: string
                  format: byte
                  description: DocumentSelectionQuery
                DOC_SIM_METHOD:
                  type: integer
                  format: int64
                  description: Document Similarity Method
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                MAX_RESULTS:
                  type: integer
                  format: int64
                  default: 20
                  description: Maximum number of results
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC Destination
                STAGING:
                  type: integer
                  format: int64
                  description: Staging
                DOC_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      CONTENT:
                        type: string
                        format: byte
                        description: ''
                RESULT_CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_KEY:
                        type: string
                        format: byte
                        description: ''
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      ERROR_CODE:
                        type: integer
                        format: int64
                        description: ''
                      ERROR_TEXT:
                        type: string
                        format: byte
                        description: ''
                RESULT_ELEM:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      NAME:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      CLASSI_TYPE:
                        type: integer
                        format: int64
                        description: ''
                      ELEM_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                RESULT_PROPERTY:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      NAME:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      CLASSI_TYPE:
                        type: integer
                        format: int64
                        description: ''
                      ELEM_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                SEARCH_DOCS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      DOC_GROUP:
                        type: string
                        format: byte
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      DOC_TYPE:
                        type: string
                        format: byte
                        description: ''
              required:
              - CLUSTERING_ATTRIBUTE
              - INDEX_ID
              - RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return text
                  DOC_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        CONTENT:
                          type: string
                          format: byte
                          description: ''
                  RESULT_CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_KEY:
                          type: string
                          format: byte
                          description: ''
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        ERROR_CODE:
                          type: integer
                          format: int64
                          description: ''
                        ERROR_TEXT:
                          type: string
                          format: byte
                          description: ''
                  RESULT_ELEM:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        NAME:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        CLASSI_TYPE:
                          type: integer
                          format: int64
                          description: ''
                        ELEM_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_PROPERTY:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        NAME:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        CLASSI_TYPE:
                          type: integer
                          format: int64
                          description: ''
                        ELEM_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  SEARCH_DOCS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        DOC_GROUP:
                          type: string
                          format: byte
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        DOC_TYPE:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
