openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWF_PHIO_CONTENT_ACCESS_GET:
    post:
      tags:
      - SKWF_CONTENT
      operationId: /rfc/SKWF_PHIO_CONTENT_ACCESS_GET
      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
                PHIO:
                  type: object
                  properties:
                    OBJTYPE:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                      enum:
                      - R
                      - L
                      - P
                      - ''
                      - F
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                USE_URL_AT:
                  type: string
                  maxLength: 1
                  description: 'Usage of URL: At Frontend or Backend'
                X_ALLOW_MODEL:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Take Template'
                X_CONTENT_ONLY:
                  type: string
                  maxLength: 1
                X_CONTENT_OR_URL_ONLY:
                  type: string
                  maxLength: 1
                X_RAW_MODE:
                  type: string
                  maxLength: 1
                X_TEXT_AS_STREAM:
                  type: string
                  maxLength: 1
                  description: '''X'' --> Compact Text Display with CR-LF'
                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_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
                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:
              - PHIO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACCESS_MODE:
                    type: integer
                    format: int64
                    description: Type of access to document via web server
                  DOCUMENT_HTTPS_URL:
                    type: string
                    maxLength: 4096
                  DOCUMENT_URL:
                    type: string
                    maxLength: 4096
                  ERROR:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      'NO':
                        type: integer
                        format: int64
                        description: Message Number
                      V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  X_MODEL_RETURNED:
                    type: string
                    maxLength: 1
                    description: '''X'' --> Template has been Used'
                  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_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
                  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.
