openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SOTR_GET_TEXTS_WITH_KEYS:
    post:
      tags:
      - SOTR_DB_READ
      operationId: /rfc/SOTR_GET_TEXTS_WITH_KEYS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTEXT:
                  type: object
                  properties:
                    LAST_REL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    LAST_IREL:
                      type: string
                      maxLength: 12
                      description: Release in the OTR (Basis Release/Add-On Release)
                    COUNTRY:
                      type: string
                      maxLength: 3
                      description: 'OTR Context: Country/Localization'
                    EXTENSION:
                      type: string
                      maxLength: 10
                      description: 'OTR Context: Enhancement'
                    ADD_CNTXT:
                      type: string
                      maxLength: 30
                      description: User-Defined Context Attribute for the OTR
                FLAG_CONTEXT:
                  type: string
                  maxLength: 1
                FLAG_WITH_ALIAS:
                  type: string
                  default: X
                  maxLength: 1
                LANGU:
                  type: string
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                REFILL_WITH_MASTER_LANGU:
                  type: object
                  properties:
                    BAPIFLAG:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                REFILL_WITH_SECONDARY_LANGU:
                  type: object
                  properties:
                    BAPIFLAG:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                SOTR_TERMS:
                  type: array
                  items:
                    type: object
                    properties:
                      CONCEPT:
                        type: string
                        maxLength: 32
                        description: Key for Logical Object in the OTR
                      LFD_NUM:
                        type: integer
                        format: int64
                        description: Sequence Number in the OTR
                      ALIAS_NAME:
                        type: string
                        maxLength: 50
                        description: Unique Alias Name for OTR Concept
                      LENGTH:
                        type: integer
                        format: int64
                        description: Length of a Text in the OTR
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key of Current Text Environment
                      TEXT:
                        type: string
                        maxLength: 255
                        description: Text Field in the OTR
              required:
              - CONTEXT
              - LANGU
              - REFILL_WITH_MASTER_LANGU
              - REFILL_WITH_SECONDARY_LANGU
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SOTR_TERMS:
                    type: array
                    items:
                      type: object
                      properties:
                        CONCEPT:
                          type: string
                          maxLength: 32
                          description: Key for Logical Object in the OTR
                        LFD_NUM:
                          type: integer
                          format: int64
                          description: Sequence Number in the OTR
                        ALIAS_NAME:
                          type: string
                          maxLength: 50
                          description: Unique Alias Name for OTR Concept
                        LENGTH:
                          type: integer
                          format: int64
                          description: Length of a Text in the OTR
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        TEXT:
                          type: string
                          maxLength: 255
                          description: Text Field in the OTR
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
