openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/_RSPO_CALL_HANDLERS:
    post:
      tags:
      - SPOA
      operationId: /rfc/_RSPO_CALL_HANDLERS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                JOB:
                  type: object
                  properties:
                    PJIDENT:
                      type: integer
                      format: int32
                      description: Spool request number
                    PJNUMMER:
                      type: integer
                      format: int32
                      description: 'Spool: output request number'
                    PJDEST:
                      type: string
                      maxLength: 4
                      description: 'Spool: Output device'
                    PJPAPER:
                      type: string
                      maxLength: 16
                      description: 'Spool: Format type'
                    PJPHYPAPER:
                      type: string
                      maxLength: 16
                      description: Format the Printer Actually Users
                    PJCREATIME:
                      type: string
                      maxLength: 16
                      description: Time spool request was created
                    PJSTATUS:
                      type: string
                      maxLength: 1
                      description: 'Spool: Output request status'
                    PJINFO:
                      type: integer
                      format: int32
                      description: 'TemSe: General counter'
                    PJCOPIES:
                      type: integer
                      format: int32
                      description: Number of copies
                    PJSTRTPAGE:
                      type: integer
                      format: int32
                      description: 'Spool: Start page for OTF printout'
                    PJENDPAGE:
                      type: integer
                      format: int32
                      description: 'Spool: Last page for partial printout'
                    PJOWNER:
                      type: string
                      maxLength: 12
                      description: User name
                    PJFINADONE:
                      type: integer
                      format: int32
                      description: Number of output requests processed
                    PJFINASERR:
                      type: integer
                      format: int32
                      description: 'Spool: Number of output requests with problems'
                    PJFINAHERR:
                      type: integer
                      format: int32
                      description: 'Spool: Number of output requests with errors (no printout)'
                    PJHOSTID:
                      type: string
                      maxLength: 20
                      description: Host spooler ID for output request
                    PJCLIENT:
                      type: string
                      maxLength: 3
                      description: Client for which object was generated
                    PJSTRTTIME:
                      type: string
                      maxLength: 16
                      description: System log time stamp
                    PJAENDTIME:
                      type: string
                      maxLength: 16
                      description: System log time stamp
                    PJHENDTIME:
                      type: string
                      maxLength: 16
                      description: System log time stamp
                    PJINFOMSG:
                      type: string
                      maxLength: 50
                      description: Comment
                    PJSIZE:
                      type: integer
                      format: int32
                      description: Print request size
                    PJERRPROT:
                      type: integer
                      format: int32
                      description: Spool request number
                    PJPRIO:
                      type: integer
                      format: int32
                      description: 'Spool: Spool or print request priority  enumValues: 4=4 = medium,7=7 = low,1=1 = very high,9=9 = very low,8=8 = low,6=6 = medium,3=3 = high,5=5 = medium,2=2 = high'
                      enum:
                      - '4'
                      - '7'
                      - '1'
                      - '9'
                      - '8'
                      - '6'
                      - '3'
                      - '5'
                      - '2'
                    PJREASON:
                      type: string
                      maxLength: 1
                      description: 'Reason for print request  enumValues: M=Manually created request,G=Request using print immediately,A=Archive requests'
                      enum:
                      - M
                      - G
                      - A
                    PJTITLE:
                      type: string
                      maxLength: 68
                      description: Title of a spool request
                    PJRECEIVER:
                      type: string
                      maxLength: 12
                      description: 'Spool: Recipient of spool request'
                    PJDIVISION:
                      type: string
                      maxLength: 12
                      description: Department
                    PJTELENUM:
                      type: string
                      maxLength: 30
                      description: Telecommunications partner
                    PJWORKHOST:
                      type: string
                      maxLength: 32
                      description: Host name
                    PJSERVER:
                      type: string
                      maxLength: 20
                      description: Server Name
                    PJLFDDCOPY:
                      type: integer
                      format: int32
                      description: Copy count
                    PJLFDPCOPY:
                      type: integer
                      format: int32
                      description: Copy counter
                    PJPOSNAME:
                      type: string
                      maxLength: 50
                      description: 'Spool: Long name of printers for host spooler'
                    PJACTTIME:
                      type: string
                      maxLength: 16
                      description: System log time stamp
                HANDLERS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 30
                        description: 'Spool: Event Handler Name'
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Spool: Type of Event Handler'
                      ARG:
                        type: string
                        maxLength: 132
                        description: 'Spool: Argument for Event Handler'
              required:
              - JOB
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HANDLERS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 30
                          description: 'Spool: Event Handler Name'
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Spool: Type of Event Handler'
                        ARG:
                          type: string
                          maxLength: 132
                          description: 'Spool: Argument for Event Handler'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
