openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_LOIO_XML_DOWNLOAD_PUBLISH:
    post:
      tags:
      - SDOK_XML
      operationId: /rfc/SDOK_LOIO_XML_DOWNLOAD_PUBLISH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                DEPTH:
                  type: integer
                  format: int64
                  default: 0
                  description: Depth of a Structure
                DIRECTORY:
                  type: string
                  maxLength: 255
                  description: Directory
                LOIO:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                X_FOLLOW_EXPORT_MODEL:
                  type: string
                  default: X
                  maxLength: 1
                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
                STRUCTURES:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTLEVEL:
                        type: integer
                        format: int64
                        description: Level in a structure
                      CLASSLO:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDLO:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      CLASSPH:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDPH:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      CLASSRE:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDRE:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      LOCKED:
                        type: string
                        maxLength: 1
                        description: Flag for "Locked"
                      DESCRIPTION:
                        type: string
                        maxLength: 64
                        description: Short Description
                STRUCTURE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      STRUCTLEVEL:
                        type: integer
                        format: int64
                        description: Level in a structure
                      CLASSLO:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDLO:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      CLASSPH:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDPH:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      CLASSRE:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJIDRE:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      LOCKED:
                        type: string
                        maxLength: 1
                        description: Flag for "Locked"
                      DESCRIPTION:
                        type: string
                        maxLength: 64
                        description: Short Description
                      DOCUMENT_FORMAT:
                        type: string
                        maxLength: 64
                        description: Attribute Value
                UNRESOLVED_LOIOS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
              required:
              - DIRECTORY
              - LOIO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROOT_COMPONENT:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      FILE_NAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      FILE_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of data transfer  enumValues: ""=Type of data transfernot specified,T=Text data,B=Binary data'
                        enum:
                        - ''
                        - T
                        - B
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      PROPERTY:
                        type: string
                        maxLength: 4
                        description: Component attribute for the application
                  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
                  STRUCTURES:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTLEVEL:
                          type: integer
                          format: int64
                          description: Level in a structure
                        CLASSLO:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDLO:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        CLASSPH:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDPH:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        CLASSRE:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDRE:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        LOCKED:
                          type: string
                          maxLength: 1
                          description: Flag for "Locked"
                        DESCRIPTION:
                          type: string
                          maxLength: 64
                          description: Short Description
                  STRUCTURE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        STRUCTLEVEL:
                          type: integer
                          format: int64
                          description: Level in a structure
                        CLASSLO:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDLO:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        CLASSPH:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDPH:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        CLASSRE:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJIDRE:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        LOCKED:
                          type: string
                          maxLength: 1
                          description: Flag for "Locked"
                        DESCRIPTION:
                          type: string
                          maxLength: 64
                          description: Short Description
                        DOCUMENT_FORMAT:
                          type: string
                          maxLength: 64
                          description: Attribute Value
                  UNRESOLVED_LOIOS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
