openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_CALC_SIM_GLOBAL:
    post:
      tags:
      - TREX_RFC_SIM_SEARCH
      summary: calculate similarity btw. tow documents
      operationId: /rfc/TREX_RFC_CALC_SIM_GLOBAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                DOC_KEY1:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                DOC_KEY2:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOCAL_SIM:
                    type: integer
                    format: int64
                    description: Numeric field length 5
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  DOC_KEY1:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  DOC_KEY2:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
