openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPO_SPOOLJOB_TO_OFFICE:
    post:
      tags:
      - SPOX
      operationId: /rfc/RSPO_SPOOLJOB_TO_OFFICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DESIRED_TYPE:
                  type: string
                  maxLength: 3
                FIRST_LINE:
                  type: integer
                  format: int32
                  default: 1
                LAST_LINE:
                  type: integer
                  format: int32
                MAIL_TITLE:
                  type: string
                  maxLength: 50
                RECEIVER:
                  type: object
                  properties:
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    DESCRIBE:
                      type: string
                      maxLength: 10
                      description: Describe flag
                RQIDENT:
                  type: integer
                  format: int32
                  description: Spool Request Number
                SENDER_ADDRESS:
                  type: string
                  default: SY-UNAME
                  maxLength: 1215
                  description: External address (SMTP/X.400...)
                SENDER_ADDRESS_TYPE:
                  type: string
                  default: B
                  maxLength: 4
                  description: 'SAPoffice: type of address'
              required:
              - RECEIVER
              - RQIDENT
      responses:
        '200':
          description: OK
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
