openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_CALC_SIM_LOCAL:
    post:
      tags:
      - TREX_RFC_SIM_SEARCH
      summary: calculate local similarity btw. two attribute values
      operationId: /rfc/TREX_RFC_CALC_SIM_LOCAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ATTR_NAME:
                  type: string
                  format: byte
                  description: Attribute Name
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                VALUE1:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        format: byte
                        description: attr value
                      COUNTER:
                        type: integer
                        format: int64
                        description: ''
                VALUE2:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE:
                        type: string
                        format: byte
                        description: attr value
                      COUNTER:
                        type: integer
                        format: int64
                        description: ''
              required:
              - ATTR_NAME
              - INDEX_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOCAL_SIM:
                    type: integer
                    format: int64
                    description: local similarity
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  VALUE1:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE:
                          type: string
                          format: byte
                          description: attr value
                        COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  VALUE2:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE:
                          type: string
                          format: byte
                          description: attr value
                        COUNTER:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
