openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/Z_RE_ALLTHINGS_DOCUMENT_LIST:
    post:
      tags:
      - Z_RE_ALLTHINGS_DOCUMENTS
      summary: reads list of documents
      operationId: /rfc/Z_RE_ALLTHINGS_DOCUMENT_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTRACT_ID:
                  type: string
              required:
              - CONTRACT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOCUMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCUMENT_ID:
                          type: string
                          maxLength: 40
                          description: 'SAP ArchiveLink: Document ID'
                        DOCUMENT_TYPE:
                          type: string
                          maxLength: 30
                          description: 30 Characters
                        ARCHIVE_DATE:
                          type: string
                          format: date
                          description: Field of type DATS
                        FILETYPE:
                          type: string
                          maxLength: 27
                          description: 'SAP ArchiveLink: Reserved for future application'
                  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.
