openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_FOLDER_HIERARCHY_READ_API1:
    post:
      tags:
      - SOI1
      summary: 'SAPoffice: View folder structure using API1'
      operationId: /rfc/SO_FOLDER_HIERARCHY_READ_API1
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LAST_ACCESS_DATE:
                  type: string
                  format: date
                  default: '00000000'
                  description: Filter for last access date
                ROOT_FOLDER_ID:
                  type: string
                  maxLength: 17
                  description: ID of root folder for folder
                FOLDER_HIERARCHY_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: string
                        maxLength: 17
                        description: 'SAPoffice: ID of a SAPoffice object'
                      PARENT_FOL:
                        type: string
                        maxLength: 17
                        description: ID of the parent folder of this folder
                      OBJ_NAME:
                        type: string
                        maxLength: 12
                        description: Name of document, folder or distribution list
                      OBJ_DESCR:
                        type: string
                        maxLength: 50
                        description: Short description of contents
                      NUM_FOLDER:
                        type: integer
                        format: int64
                        description: Number of folders in this folder
                      LAST_ACCES:
                        type: string
                        format: date
                        description: Date of last access
                      NUM_UNREAD:
                        type: string
                        maxLength: 5
                        description: Number of unviewed messages in this folder
                      DEPTH:
                        type: integer
                        format: int64
                        description: Expansion level
              required:
              - ROOT_FOLDER_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FOLDER_HIERARCHY_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: string
                          maxLength: 17
                          description: 'SAPoffice: ID of a SAPoffice object'
                        PARENT_FOL:
                          type: string
                          maxLength: 17
                          description: ID of the parent folder of this folder
                        OBJ_NAME:
                          type: string
                          maxLength: 12
                          description: Name of document, folder or distribution list
                        OBJ_DESCR:
                          type: string
                          maxLength: 50
                          description: Short description of contents
                        NUM_FOLDER:
                          type: integer
                          format: int64
                          description: Number of folders in this folder
                        LAST_ACCES:
                          type: string
                          format: date
                          description: Date of last access
                        NUM_UNREAD:
                          type: string
                          maxLength: 5
                          description: Number of unviewed messages in this folder
                        DEPTH:
                          type: integer
                          format: int64
                          description: Expansion level
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
