openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_CREATE_LANGUAGE_INDEX:
    post:
      tags:
      - TREX_ARW_ADMINISTRATION
      summary: Create Language Index
      operationId: /rfc/TREX_ARW_CREATE_LANGUAGE_INDEX
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ALL_ATTRS_FREESTYLE:
                  type: string
                  format: byte
                  description: '0: false, 1: true'
                DESCRIPTION:
                  type: string
                  format: byte
                  description: Description
                INDEX_ID:
                  type: string
                  format: byte
                  description: Index Id
                ONE_PHYSICAL_INDEX:
                  type: string
                  format: byte
                  description: Indicator
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC destination to TREX engine
                UPDATE_FLAG:
                  type: string
                  format: byte
                  description: Indicator
                FREESTYLE_SEARCH_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                JOIN_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                LANGUAGES:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        format: byte
                        description: ''
                LANG_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                LANG_INDEP_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
              required:
              - INDEX_ID
              - RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return text
                  FREESTYLE_SEARCH_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                  JOIN_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                  LANGUAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          format: byte
                          description: ''
                  LANG_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                  LANG_INDEP_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
