openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TMW_NET_PRETRANSLATE:
    post:
      tags:
      - LXE_TMW_PREPROCESS
      summary: Pretranslate interface for .NET server generation
      operationId: /rfc/TMW_NET_PRETRANSLATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MIN_MATCH_VALUE:
                  type: integer
                  format: int32
                  description: Minimum Match Value
                OBJINFO:
                  type: object
                  properties:
                    CUSTMNR:
                      type: string
                      maxLength: 6
                      description: Translation Area
                    TLANG:
                      type: string
                      maxLength: 4
                      description: ISO Language ID
                    SLANG:
                      type: string
                      maxLength: 4
                      description: ISO Language ID
                    OBJTYPE:
                      type: string
                      maxLength: 4
                      description: Type of Translation Object
                    OBJNAME:
                      type: string
                      maxLength: 70
                      description: Name of Translation Object
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                SOURCE:
                  type: string
                  format: byte
                  description: Translation Memory System Information
                TMSINFO:
                  type: object
                  properties:
                    TARGET_LCID:
                      type: integer
                      format: int32
                      description: Translation Memory Middleware Locale
                    TM_URI:
                      type: string
                      description: Translation Middleware Parameter (Previously CHAR255)
                    TM_USER_ID:
                      type: string
                      description: Translation Middleware Parameter (Previously CHAR255)
                    MARKUP:
                      type: string
                      maxLength: 1
                      description: Translation Memory Middleware Markup
                    UNAME:
                      type: string
                      description: Translation Middleware Parameter (Previously CHAR255)
              required:
              - MIN_MATCH_VALUE
              - OBJINFO
              - SOURCE
              - TMSINFO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RESULT_TTX:
                    type: string
                    format: byte
                    description: Translation Midleware Result Count
                  STATS:
                    type: object
                    properties:
                      SEGMENTS_TOTAL:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
                      WORDS_TOTAL:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
                      SEGMENTS_TRANSLATED:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
                      WORDS_TRANSLATED:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
                      SEGMENTS_XTRANSLATED:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
                      WORDS_XTRANSLATED:
                        type: integer
                        format: int32
                        description: Translation Midleware Counter
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
