openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EPS2_GET_DIRECTORY_LISTING:
    post:
      tags:
      - EPSF
      operationId: /rfc/EPS2_GET_DIRECTORY_LISTING
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DIR_NAME:
                  type: string
                  maxLength: 60
                FILE_MASK:
                  type: string
                  default: ' '
                  maxLength: 40
                DIR_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 200
                        description: File Name
                      SIZE:
                        type: integer
                        format: int32
                        description: File Size
                      MTIM:
                        type: string
                        maxLength: 30
                        description: Time Stamp
                      OWNER:
                        type: string
                        maxLength: 8
                        description: File owner
                      RC:
                        type: integer
                        format: int64
                        description: File transfer return code
              required:
              - DIR_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DIR_NAME:
                    type: string
                    maxLength: 60
                  ERROR_COUNTER:
                    type: integer
                    format: int32
                  FILE_COUNTER:
                    type: integer
                    format: int32
                  DIR_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 200
                          description: File Name
                        SIZE:
                          type: integer
                          format: int32
                          description: File Size
                        MTIM:
                          type: string
                          maxLength: 30
                          description: Time Stamp
                        OWNER:
                          type: string
                          maxLength: 8
                          description: File owner
                        RC:
                          type: integer
                          format: int64
                          description: File transfer return code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
