openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_LOIO_CREATE_WITH_PHIO:
    post:
      tags:
      - SDCX
      operationId: /rfc/SDOK_LOIO_CREATE_WITH_PHIO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                LOIO_CLASS:
                  type: string
                  maxLength: 10
                LOIO_UNIQUE_ID:
                  type: string
                  maxLength: 32
                PHIO_CLASS:
                  type: string
                  maxLength: 10
                PHIO_UNIQUE_ID:
                  type: string
                  maxLength: 32
                STANDARD_URL_ONLY:
                  type: string
                  maxLength: 1
                URL_USED_AT:
                  type: string
                  maxLength: 1
                LOIO_PROPERTIES:
                  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
                PHIO_FROM_RELATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      REIO_ID:
                        type: string
                        maxLength: 32
                        description: Relationship between logical and physical documents
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Relationship class
                      PRTN_ID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                PHIO_PROPERTIES:
                  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
                PHIO_TO_RELATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      REIO_ID:
                        type: string
                        maxLength: 32
                        description: Relationship between logical and physical documents
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Relationship class
                      PRTN_ID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                REQUESTED_COMPONENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                URLS:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      URL:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
              required:
              - LOIO_CLASS
              - PHIO_CLASS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOCUMENT_URL:
                    type: string
                    maxLength: 4096
                  LOIO_OBJECT_ID:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                  PHIO_OBJECT_ID:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                  LOIO_PROPERTIES:
                    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
                  PHIO_FROM_RELATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        REIO_ID:
                          type: string
                          maxLength: 32
                          description: Relationship between logical and physical documents
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Relationship class
                        PRTN_ID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                  PHIO_PROPERTIES:
                    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
                  PHIO_TO_RELATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        REIO_ID:
                          type: string
                          maxLength: 32
                          description: Relationship between logical and physical documents
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Relationship class
                        PRTN_ID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                  REQUESTED_COMPONENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                  URLS:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        URL:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
