openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPO_SXOMS_DEFINE_PRINTER:
    post:
      tags:
      - SXOMS
      operationId: /rfc/RSPO_SXOMS_DEFINE_PRINTER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEVICE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      DEVICE_NAME:
                        type: string
                        maxLength: 30
                        description: 'Spool: Long device names'
                      TRAY_INFO:
                        type: object
                        properties:
                          TRAYBITS:
                            type: string
                            maxLength: 13
                            description: Bit Field for Tray Information
                          TRAY1:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY2:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY3:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY4:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY5:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY6:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY7:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY8:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY9:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAY10:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAYMANU:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAYENV:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                          TRAYMANENV:
                            type: string
                            maxLength: 8
                            description: 'Spool: Page format'
                      DEVICE_TYPE:
                        type: string
                        maxLength: 8
                        description: 'Spool: Device type name'
                      SHORT_TEXT:
                        type: string
                        maxLength: 30
                        description: 'Spool: Name'
                      DEVICE_CLASS:
                        type: string
                        maxLength: 1
                        description: Device class (printer, fax, and so on)
                      MODEL:
                        type: string
                        maxLength: 20
                        description: 'Spool: Model of an output device'
                      LOCATION:
                        type: string
                        maxLength: 64
                        description: 'Spool: Location and naming of an output device'
                      MESSAGE:
                        type: string
                        maxLength: 64
                        description: 'Spool: Status message (or copy of location)'
                      AUTHORIZATION_GROUP:
                        type: string
                        maxLength: 30
                        description: 'Spool: authorization group for devices'
                      LOCK_PRINTER:
                        type: string
                        maxLength: 1
                        description: Output device not released
                      HOST_PRINTER:
                        type: string
                        maxLength: 50
                        description: 'Spool: Long name of printers for host spooler'
                      SAP_COVER_PAGE:
                        type: string
                        maxLength: 1
                        description: Print SAP cover page
                      SAP_COVER_PAGE_LNG:
                        type: string
                        maxLength: 2
                        description: SAP Cover Sheet Language
                      HOSTSPOOL_COVER_PAGE:
                        type: string
                        maxLength: 1
                        description: Print default host spool cover page
                      MONITOR:
                        type: string
                        maxLength: 1
                        description: 'Spool: Monitor using monitoring infrastructure'
                      PROCESS_SEQ:
                        type: string
                        maxLength: 1
                        description: 'Spool: Synchronization of requests of a device'
                      HORZ_MOVE:
                        type: integer
                        format: int32
                        description: Horizontal move
                      HORZ_MOVE_UNIT:
                        type: string
                        maxLength: 2
                        description: Unit of measurement for horizontal shift
                      VERT_MOVE:
                        type: integer
                        format: int32
                        description: Vertical shift
                      VERT_MOVE_UNIT:
                        type: string
                        maxLength: 2
                        description: Unit of measurement for vertical shift
                      COLOR_PRINTER:
                        type: string
                        maxLength: 1
                        description: Flag whether or not printer supports color printing
                      PRINT_MODE:
                        type: string
                        maxLength: 1
                        description: Print mode controls printing on one or both sides
                      PAPER_TRAY:
                        type: string
                        maxLength: 3
                        description: Printer paper tray
                      UNUSED:
                        type: string
                        maxLength: 64
                        description: Character field, length 64
                SPC_NAME:
                  type: string
                  maxLength: 8
              required:
              - DEVICE_TABLE
              - SPC_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: array
                    items:
                      type: object
                      properties:
                        DEVICE_NAME:
                          type: string
                          maxLength: 30
                          description: 'Spool: Long device names'
                        ERROR_CODE:
                          type: string
                          maxLength: 3
                          description: Error Code for OMS Web Interface
                        ERROR_DESC:
                          type: string
                          maxLength: 255
                          description: Error Description for OMS Web Interface
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
