openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TRM_GET_BEST_PROPOSAL:
    post:
      tags:
      - STQ7
      operationId: /rfc/TRM_GET_BEST_PROPOSAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPLIC:
                  type: string
                  maxLength: 2
                MAX_LENGTH:
                  type: integer
                  format: int64
                  default: 255
                SOURCEL:
                  type: string
                  maxLength: 1
                STEXT:
                  type: string
                  maxLength: 255
                TARGETL:
                  type: string
                  maxLength: 1
              required:
              - SOURCEL
              - STEXT
              - TARGETL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LS_TRMTRA:
                    type: object
                    properties:
                      SLANGUAGE:
                        type: string
                        maxLength: 1
                        description: Source language
                      TLANGUAGE:
                        type: string
                        maxLength: 1
                        description: Target language
                      SHASH:
                        type: string
                        maxLength: 20
                        description: Hash key of text in Proposal Pool, source language
                      STABID:
                        type: integer
                        format: int64
                        description: ID of source lang. text table of Proposal Pool
                      SHASHCNFL:
                        type: integer
                        format: int64
                        description: Hash conflict counter for Proposal Pool, source language
                      APPLIC:
                        type: string
                        maxLength: 2
                        description: Application ID in Proposal Pool
                      NR:
                        type: integer
                        format: int64
                        description: Numeric, 2-digit; Proposal Pool
                      THASH:
                        type: string
                        maxLength: 20
                        description: Hash key of text in Proposal Pool, target language
                      TTABID:
                        type: integer
                        format: int64
                        description: ID of target language text table of Proposal Pool
                      THASHCNFL:
                        type: integer
                        format: int64
                        description: Hash conflict counter for Proposal Pool, target language
                      ABBEXC:
                        type: string
                        maxLength: 1
                        description: 'Flag: X = exception translation, N = node, A = abbreviation  enumValues: X=Set'
                        enum:
                        - X
                      SSTRLEN:
                        type: integer
                        format: int64
                        description: Length of source lang. text string in Proposal Pool
                      TSTRLEN:
                        type: integer
                        format: int64
                        description: Length of text string in target language in Proposal Pool
                      TRMSTATUS:
                        type: integer
                        format: int64
                        description: 'Status of translation pair / translator  enumValues: 1=Beginner,2=Professional,0=Developer,3=Coordinator'
                        enum:
                        - '1'
                        - '2'
                        - '0'
                        - '3'
                      DEVC:
                        type: string
                        maxLength: 2
                        description: Application ID in Proposal Pool
                      USAGECNT:
                        type: integer
                        format: int64
                        description: Translation usage counter in Proposal Pool
                      APPLCNT:
                        type: integer
                        format: int64
                        description: Application usage counter in Proposal Pool
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User Name
                      IDATE:
                        type: string
                        format: date
                        description: Date
                      TRCONFLICT:
                        type: string
                        maxLength: 1
                        description: 'ID: Translation conflict exists  enumValues: X=Set'
                        enum:
                        - X
                  TTEXT:
                    type: string
                    maxLength: 255
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
