openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/Z_RE_ALLTHINGS_DOCUMENT_READ:
    post:
      tags:
      - Z_RE_ALLTHINGS_DOCUMENTS
      summary: Lesen Dokumente
      operationId: /rfc/Z_RE_ALLTHINGS_DOCUMENT_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTRACT_ID:
                  type: string
                DOCUMENT_ID:
                  type: string
                  maxLength: 40
                  description: 'SAP ArchiveLink: Document ID'
              required:
              - CONTRACT_ID
              - DOCUMENT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BINARYOBJECT:
                    type: string
                    format: byte
                    description: Status Structure
                  STATUS:
                    type: object
                    properties:
                      STATUS:
                        type: string
                        maxLength: 30
                        description: 30 Characters
                      MESSAGE:
                        type: string
                        maxLength: 100
                        description: Character 100
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
