openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OCS_GET_FILE_INFO:
    post:
      tags:
      - OCSI
      operationId: /rfc/OCS_GET_FILE_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DIR_NAME:
                  type: string
                  default: $(DIR_EXECUTABLE)
                  maxLength: 120
                FILE_NAME:
                  type: string
                  default: '*'
                  maxLength: 120
                DIR_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 120
                        description: File name
                      TYPE:
                        type: string
                        maxLength: 20
                        description: Object type (file, directory)
                      LEN:
                        type: integer
                        format: int64
                        description: Size in bytes
                      OWNER:
                        type: string
                        maxLength: 8
                        description: File owner
                      MTIME:
                        type: integer
                        format: int64
                        description: Seconds since 1970
                      ACC_MODE:
                        type: string
                        maxLength: 10
                        description: File access mask
                      MOD_DATE:
                        type: string
                        format: date
                        description: Date (YYYYMMDD) calculated from MTIME
                      MOD_TIME:
                        type: string
                        maxLength: 8
                        description: Time (hh:mm:ss) calculated from MTIME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DIR_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 120
                          description: File name
                        TYPE:
                          type: string
                          maxLength: 20
                          description: Object type (file, directory)
                        LEN:
                          type: integer
                          format: int64
                          description: Size in bytes
                        OWNER:
                          type: string
                          maxLength: 8
                          description: File owner
                        MTIME:
                          type: integer
                          format: int64
                          description: Seconds since 1970
                        ACC_MODE:
                          type: string
                          maxLength: 10
                          description: File access mask
                        MOD_DATE:
                          type: string
                          format: date
                          description: Date (YYYYMMDD) calculated from MTIME
                        MOD_TIME:
                          type: string
                          maxLength: 8
                          description: Time (hh:mm:ss) calculated from MTIME
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
