openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPO_READ_DATASET:
    post:
      tags:
      - SPOOL_SP01R
      summary: Read dataset
      operationId: /rfc/RSPO_READ_DATASET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FILE:
                  type: string
                  maxLength: 255
                PJIDENT:
                  type: integer
                  format: int32
                  description: Spool request number
                PJNUMBER:
                  type: integer
                  format: int32
                  description: 'Spool: output request number'
                RFCDEST:
                  type: string
                  maxLength: 20
                BUFFER:
                  type: array
                  items:
                    type: object
                    properties:
                      DATA:
                        type: string
                        format: byte
                        description: Data field for RFC with frontend printing (cont.ASCII data)
              required:
              - FILE
              - PJIDENT
              - PJNUMBER
              - RFCDEST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FILESIZE:
                    type: integer
                    format: int32
                    description: 'Spool: output request number'
                  FULLPATH:
                    type: string
                    maxLength: 255
                    description: File Name with Path
                  BUFFER:
                    type: array
                    items:
                      type: object
                      properties:
                        DATA:
                          type: string
                          format: byte
                          description: Data field for RFC with frontend printing (cont.ASCII data)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
