openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_FOLDER_ID_GET:
    post:
      tags:
      - SOA7
      operationId: /rfc/SO_FOLDER_ID_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OWNER:
                  type: string
                  maxLength: 12
                  description: SAPoffice owner of folder
                REGION:
                  type: string
                  default: Q
                  maxLength: 1
                  description: Part of folders for searching for folder ID
                PATH_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJNAM:
                        type: string
                        maxLength: 12
                        description: Name of document, folder or distribution list
              required:
              - OWNER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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'
                  PATH_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJNAM:
                          type: string
                          maxLength: 12
                          description: Name of document, folder or distribution list
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
