openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_GET_PHIO_ACCESS:
    post:
      tags:
      - SDCI
      operationId: /rfc/SDOK_GET_PHIO_ACCESS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CACHE_SERVER:
                  type: object
                  properties:
                    SERVER:
                      type: string
                      maxLength: 64
                      description: Host Name
                    HTTP_PORT:
                      type: integer
                      format: int64
                      description: HTTP port of cache server
                    HTTPS_PORT:
                      type: integer
                      format: int64
                      description: HTTPS port of cache server
                    SCRIPT:
                      type: string
                      maxLength: 70
                      description: Cache Server HTTP Script
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                CONTENT_ONLY:
                  type: string
                  maxLength: 1
                CONTENT_OR_URL_ONLY:
                  type: string
                  maxLength: 1
                  description: 'Obsolete: Do Not Use'
                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
                RAW_MODE:
                  type: string
                  maxLength: 1
                TEXT_AS_STREAM:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Compact Text Display with CR-LF'
                URL_USED_AT:
                  type: string
                  default: F
                  maxLength: 1
                  description: 'Usage of URL: At Frontend or Backend'
                COMPONENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      FILE_NAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      PROPERTY:
                        type: string
                        maxLength: 4
                        description: Component attribute for the application
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      BINARY_FLG:
                        type: string
                        maxLength: 1
                        description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      FIRST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      LAST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      DIRECTORY:
                        type: string
                        maxLength: 255
                        description: Directory on target computer
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      URI:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
                COMPONENT_ACCESS:
                  type: array
                  items:
                    type: object
                    properties:
                      FILE_NAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      PROPERTY:
                        type: string
                        maxLength: 4
                        description: Component attribute for the application
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      BINARY_FLG:
                        type: string
                        maxLength: 1
                        description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      FIRST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      LAST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      HTTP_URI:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
                      HTTPS_URI:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
                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
                FILE_ACCESS_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      BINARY_FLG:
                        type: string
                        maxLength: 1
                        description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      FIRST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      LAST_LINE:
                        type: integer
                        format: int64
                        description: Line number in internal table
                      PATHNAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      URI:
                        type: string
                        maxLength: 4096
                        description: 'SAP ArchiveLink: Data Element for Absolute URI'
                FILE_CONTENT_ASCII:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 1022
                        description: Line for text document contents, length as during upload
                FILE_CONTENT_BINARY:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: Line for binary document contents, length for upload
                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
              required:
              - LOIO_OBJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACCESS_MODE:
                    type: integer
                    format: int64
                  COVER_LOIO:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                  DOCUMENT_HTTPS_URL:
                    type: string
                    maxLength: 4096
                  DOCUMENT_URL:
                    type: string
                    maxLength: 4096
                  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
                  COMPONENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        FILE_NAME:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        PROPERTY:
                          type: string
                          maxLength: 4
                          description: Component attribute for the application
                        FILE_SIZE:
                          type: integer
                          format: int64
                          description: File size (in bytes)
                        BINARY_FLG:
                          type: string
                          maxLength: 1
                          description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        FIRST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        LAST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        DIRECTORY:
                          type: string
                          maxLength: 255
                          description: Directory on target computer
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: HTML content type
                        URI:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
                  COMPONENT_ACCESS:
                    type: array
                    items:
                      type: object
                      properties:
                        FILE_NAME:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        PROPERTY:
                          type: string
                          maxLength: 4
                          description: Component attribute for the application
                        FILE_SIZE:
                          type: integer
                          format: int64
                          description: File size (in bytes)
                        BINARY_FLG:
                          type: string
                          maxLength: 1
                          description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        FIRST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        LAST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: HTML content type
                        HTTP_URI:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
                        HTTPS_URI:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
                  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
                  FILE_ACCESS_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        FILE_SIZE:
                          type: integer
                          format: int64
                          description: File size (in bytes)
                        BINARY_FLG:
                          type: string
                          maxLength: 1
                          description: 'Flag for binary files  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        FIRST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        LAST_LINE:
                          type: integer
                          format: int64
                          description: Line number in internal table
                        PATHNAME:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: HTML content type
                        URI:
                          type: string
                          maxLength: 4096
                          description: 'SAP ArchiveLink: Data Element for Absolute URI'
                  FILE_CONTENT_ASCII:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 1022
                          description: Line for text document contents, length as during upload
                  FILE_CONTENT_BINARY:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: Line for binary document contents, length for upload
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
