openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/QUEUE_GET:
    post:
      tags:
      - SQUE
      summary: Read data element from queue
      operationId: /rfc/QUEUE_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                NAME:
                  type: string
                  maxLength: 20
                  description: Queue Identifier
                OPENMODE:
                  type: string
                  default: ' '
                  maxLength: 1
                POS:
                  type: integer
                  format: int32
                  default: 0
                  description: Item in the Unit
                UNIT:
                  type: integer
                  format: int32
                  default: 0
                  description: Number of Unit
              required:
              - NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BUFFER:
                    type: string
                    maxLength: 7902
                    description: Buffer for data element
                  LENGTH:
                    type: integer
                    format: int32
                    description: Length of data element
                  POS:
                    type: integer
                    format: int32
                    description: Item in the Unit
                  SQLRC:
                    type: integer
                    format: int32
                    description: SQL Error Code
                  STATE:
                    type: string
                    maxLength: 1
                    description: Indicator for start/end of unit
                  UNIT:
                    type: integer
                    format: int32
                    description: Number of Unit
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
