openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_FOLDER_HIERARCHY_READ:
    post:
      tags:
      - SOC3
      operationId: /rfc/SO_FOLDER_HIERARCHY_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LAST_ACCESS:
                  type: string
                  format: date
                  default: '00000000'
                OBJECT_ID:
                  type: object
                  properties:
                    OBJTP:
                      type: string
                      maxLength: 3
                      description: Code for document class
                    OBJYR:
                      type: string
                      maxLength: 2
                      description: 'Object: Year from ID'
                    OBJNO:
                      type: string
                      maxLength: 12
                      description: 'Object: Number from ID'
                OWNER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Owner of folder
                REGION:
                  type: string
                  default: Q
                  maxLength: 1
                  description: Part of file (private or shared)
                HIERARCHY_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_KEY:
                        type: string
                        maxLength: 30
                        description: 'SAPoffice: Text field'
                      PARENT_KEY:
                        type: string
                        maxLength: 30
                        description: 'SAPoffice: Text field'
                      NODE_TEXT:
                        type: string
                        maxLength: 12
                        description: Folder name
                      NODE_TITLE:
                        type: string
                        maxLength: 50
                        description: Short description of contents
                      FOLCNT:
                        type: integer
                        format: int32
                        description: 'SAPoffice: Type I'
                      LADAT:
                        type: string
                        format: date
                        description: Date of last access
                      FOLDISP:
                        type: string
                        maxLength: 1
                        description: 'SAPoffice foreground/background processing  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      UNREAD:
                        type: integer
                        format: int32
                        description: 'SAPoffice: Number of unread documents (shared folders)'
                      FOLUNREAD:
                        type: string
                        maxLength: 1
                        description: 'SAPoffice foreground/background processing  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NODE_ID:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LAST_ACCESS:
                    type: string
                    format: date
                    description: Part of file (private or shared)
                  TABLE_EMPTY:
                    type: string
                    maxLength: 1
                    description: Table empty = ON, not empty = OFF
                  USER_HAS_ABO:
                    type: integer
                    format: int32
                    description: Table empty = ON, not empty = OFF
                  HIERARCHY_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_KEY:
                          type: string
                          maxLength: 30
                          description: 'SAPoffice: Text field'
                        PARENT_KEY:
                          type: string
                          maxLength: 30
                          description: 'SAPoffice: Text field'
                        NODE_TEXT:
                          type: string
                          maxLength: 12
                          description: Folder name
                        NODE_TITLE:
                          type: string
                          maxLength: 50
                          description: Short description of contents
                        FOLCNT:
                          type: integer
                          format: int32
                          description: 'SAPoffice: Type I'
                        LADAT:
                          type: string
                          format: date
                          description: Date of last access
                        FOLDISP:
                          type: string
                          maxLength: 1
                          description: 'SAPoffice foreground/background processing  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        UNREAD:
                          type: integer
                          format: int32
                          description: 'SAPoffice: Number of unread documents (shared folders)'
                        FOLUNREAD:
                          type: string
                          maxLength: 1
                          description: 'SAPoffice foreground/background processing  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NODE_ID:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
