openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RFC_CONVERT_DOCUMENT:
    post:
      tags:
      - SPOC
      operationId: /rfc/RFC_CONVERT_DOCUMENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COPIES:
                  type: integer
                  format: int32
                  description: Number of Copies
                DSIZE:
                  type: integer
                  format: int32
                  description: 'Spool: size in bytes'
                DTYPE:
                  type: string
                  maxLength: 6
                  description: 'Spool: document type'
                DURL:
                  type: string
                  maxLength: 512
                  description: URL (Uniform Resource Locator)
                ENDPAGE:
                  type: integer
                  format: int32
                  description: 'Spool: Last page for partial printout'
                PLANG:
                  type: string
                  maxLength: 4
                  description: 'Spool: Driver name'
                STARTPAGE:
                  type: integer
                  format: int32
                  description: 'Spool: Start page for OTF printout'
                DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: Line for binary document contents, length for upload
              required:
              - COPIES
              - DSIZE
              - DTYPE
              - DURL
              - ENDPAGE
              - PLANG
              - STARTPAGE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AREACODE:
                    type: integer
                    format: int64
                    description: Area code of event
                  CLASSCODE:
                    type: integer
                    format: int64
                    description: Error class of an event
                  MESSAGE:
                    type: object
                    properties:
                      MSGCLASS:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: company name of external management tool'
                      MSGID:
                        type: string
                        maxLength: 30
                        description: Message ID for an XMI log entry
                      MSGARG1:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE1:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG2:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE2:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG3:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE3:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG4:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE4:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGTEXT:
                        type: string
                        maxLength: 128
                        description: Actual text of message
                  PSIZE:
                    type: integer
                    format: int32
                    description: 'Spool: size in bytes'
                  DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: Line for binary document contents, length for upload
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
