openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_BEGIN_TRANSACTION:
    post:
      tags:
      - TREX_RFC_TRANSACTION
      summary: begin transaction
      operationId: /rfc/TREX_RFC_BEGIN_TRANSACTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MAX_TIME_TO_LIVE:
                  type: integer
                  format: int64
                  description: Numeric Character Field, Length 10
                MAX_WAIT_TIME:
                  type: integer
                  format: int64
                  description: Numeric Character Field, Length 10
                INDEX_USAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      USAGE_TYPE:
                        type: integer
                        format: int64
                        description: ''
                TRANSACTION_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      STATUS:
                        type: integer
                        format: int64
                        description: ''
                      RETURN_CODE:
                        type: integer
                        format: int64
                        description: ''
                      RETURN_TEXT:
                        type: string
                        format: byte
                        description: ''
              required:
              - MAX_TIME_TO_LIVE
              - MAX_WAIT_TIME
      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
                  TRANSACTION_ID:
                    type: string
                    format: byte
                    description: Return Text
                  INDEX_USAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        USAGE_TYPE:
                          type: integer
                          format: int64
                          description: ''
                  TRANSACTION_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        STATUS:
                          type: integer
                          format: int64
                          description: ''
                        RETURN_CODE:
                          type: integer
                          format: int64
                          description: ''
                        RETURN_TEXT:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
