openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_EXT_REPLICATE:
    post:
      tags:
      - TREX_EXT_ADMINISTRATION
      summary: 'modify Index Replication: replicate'
      operationId: /rfc/TREX_EXT_REPLICATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_ACTION:
                  type: string
                  default: '0'
                  maxLength: 1
                  description: '0: start replication, 1: abort replication'
                I_INDEXES:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_ID:
                        type: string
                        maxLength: 64
                        description: Index Id
                I_RFC_DESTINATION:
                  type: string
                  maxLength: 32
                  description: RFC Destination
              required:
              - I_ACTION
              - I_INDEXES
              - I_RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_RETURN_CODE:
                    type: integer
                    format: int32
                    description: Returncode
                  E_RETURN_TEXT:
                    type: string
                    maxLength: 200
                    description: Returntext
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
