openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_XSERVICE_GET_STRUCTURE:
    post:
      tags:
      - SDOK_XML
      operationId: /rfc/SDOK_XSERVICE_GET_STRUCTURE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEPTH:
                  type: integer
                  format: int64
                  default: 0
                ROOT_LOIO:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                CONTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Attribute Value
                RELATION_CLASSES:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
              required:
              - ROOT_LOIO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RESULT:
                    type: string
                    format: byte
                  CONTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Attribute Value
                  RELATION_CLASSES:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
