openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXPG_COMMAND_START_INT:
    post:
      tags:
      - SXPT
      operationId: /rfc/SXPG_COMMAND_START_INT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMAND:
                  type: string
                  maxLength: 128
                DESTINATION:
                  type: string
                  maxLength: 32
                OPERATINGSYSTEM:
                  type: string
                  default: SY-OPSYS
                  maxLength: 10
                PARAMS:
                  type: string
                  maxLength: 255
                STDERRCNTL:
                  type: string
                  maxLength: 1
                STDINCNTL:
                  type: string
                  maxLength: 1
                STDOUTCNTL:
                  type: string
                  maxLength: 1
                TARGETSYSTEM:
                  type: string
                  maxLength: 1024
                TERMCNTL:
                  type: string
                  maxLength: 1
                TRACECNTL:
                  type: string
                  maxLength: 1
                EXEC_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
              required:
              - COMMAND
              - DESTINATION
              - STDERRCNTL
              - STDINCNTL
              - STDOUTCNTL
              - TARGETSYSTEM
              - TERMCNTL
              - TRACECNTL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CONVID:
                    type: string
                    maxLength: 8
                    description: Conversation id
                  STRTSTAT:
                    type: string
                    maxLength: 1
                  XPGID:
                    type: integer
                    format: int32
                  EXEC_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
