openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXPG_COMMAND_LIST_GET:
    post:
      tags:
      - SXPT
      operationId: /rfc/SXPG_COMMAND_LIST_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMANDNAME:
                  type: string
                  default: '*'
                  maxLength: 18
                  description: Name of External Command
                OPERATINGSYSTEM:
                  type: string
                  default: '*'
                  maxLength: 10
                  description: Executing Host System
                TARGETSYSTEM:
                  type: string
                  default: '*'
                  maxLength: 1024
                  description: Target System
                COMMAND_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 18
                        description: Logical command name
                      OPSYSTEM:
                        type: string
                        maxLength: 10
                        description: Operating System of Application Server
                      OPCOMMAND:
                        type: string
                        maxLength: 128
                        description: Name of external program (possibly with access path)
                      PARAMETERS:
                        type: string
                        maxLength: 255
                        description: Parameters of external program (string)
                      ADDPAR:
                        type: string
                        maxLength: 1
                        description: Additional parameters allowed in logical command
                      SAPCOMMAND:
                        type: string
                        maxLength: 1
                        description: Type of a logical command ( 'X' means provided by SAP)
                      PERMISSION:
                        type: string
                        maxLength: 1
                        description: Execute permission for logical commands
                      TRACEON:
                        type: string
                        maxLength: 1
                        description: automatic trace for logical commands
                      CHECKCALL:
                        type: string
                        maxLength: 30
                        description: Function module to check a logical command
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMMAND_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 18
                          description: Logical command name
                        OPSYSTEM:
                          type: string
                          maxLength: 10
                          description: Operating System of Application Server
                        OPCOMMAND:
                          type: string
                          maxLength: 128
                          description: Name of external program (possibly with access path)
                        PARAMETERS:
                          type: string
                          maxLength: 255
                          description: Parameters of external program (string)
                        ADDPAR:
                          type: string
                          maxLength: 1
                          description: Additional parameters allowed in logical command
                        SAPCOMMAND:
                          type: string
                          maxLength: 1
                          description: Type of a logical command ( 'X' means provided by SAP)
                        PERMISSION:
                          type: string
                          maxLength: 1
                          description: Execute permission for logical commands
                        TRACEON:
                          type: string
                          maxLength: 1
                          description: automatic trace for logical commands
                        CHECKCALL:
                          type: string
                          maxLength: 30
                          description: Function module to check a logical command
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
