openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BCOM_RS_ROUTING_TEST:
    post:
      tags:
      - BCOM_IR_ROUTER
      operationId: /rfc/BCOM_RS_ROUTING_TEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DESTINATION:
                  type: object
                  properties:
                    TYPE:
                      type: string
                      maxLength: 3
                      description: 'SAPconnect: Address type  enumValues: X40=X.400 mail address,*=All,PAG=Pager (SMS) number,RML=SAPoffice address,FAX=Fax number,INT=Internet mail address,PRT=Printer name'
                      enum:
                      - X40
                      - '*'
                      - PAG
                      - RML
                      - FAX
                      - INT
                      - PRT
                    ADDRESS:
                      type: string
                      maxLength: 241
                      description: E-Mail Address
                ORIGIN:
                  type: object
                  properties:
                    TYPE:
                      type: string
                      maxLength: 3
                      description: 'SAPconnect: Address type  enumValues: X40=X.400 mail address,*=All,PAG=Pager (SMS) number,RML=SAPoffice address,FAX=Fax number,INT=Internet mail address,PRT=Printer name'
                      enum:
                      - X40
                      - '*'
                      - PAG
                      - RML
                      - FAX
                      - INT
                      - PRT
                    ADDRESS:
                      type: string
                      maxLength: 241
                      description: E-Mail Address
                SCENARIO_ID:
                  type: string
                  maxLength: 32
                  description: Routing Scenario ID
                AGENTGROUP_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: 'Routing: Agent Group'
                ATTRIBUTE_VALUE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTID:
                        type: string
                        maxLength: 32
                        description: 'Routing: Attribute ID'
                      VALUE:
                        type: string
                        maxLength: 32
                        description: Routing Attribute Value
                MESSAGE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGTEXT:
                        type: string
                        maxLength: 80
                        description: Unformatted text (information only)
              required:
              - DESTINATION
              - ORIGIN
              - SCENARIO_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AGENTGROUP_ID:
                    type: string
                    maxLength: 32
                    description: 'Routing: Agent Group'
                  ERR_TEXT:
                    type: string
                    maxLength: 80
                    description: Unformatted text (information only)
                  RETURNCODE:
                    type: string
                    maxLength: 4
                    description: 'SAPphone: Return code'
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                    description: Return code from external software
                  SCENARIO_ID:
                    type: string
                    maxLength: 32
                    description: Routing Scenario ID
                  AGENTGROUP_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 32
                          description: 'Routing: Agent Group'
                  ATTRIBUTE_VALUE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTID:
                          type: string
                          maxLength: 32
                          description: 'Routing: Attribute ID'
                        VALUE:
                          type: string
                          maxLength: 32
                          description: Routing Attribute Value
                  MESSAGE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGTEXT:
                          type: string
                          maxLength: 80
                          description: Unformatted text (information only)
                required:
                - SCENARIO_ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
