openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BCOM_RS_ROUTING_TEST_T:
    post:
      tags:
      - BCOM_RS_RFC
      operationId: /rfc/BCOM_RS_ROUTING_TEST_T
      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
                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
              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'
                  SCENARIO_USED:
                    type: string
                    maxLength: 32
                    description: Routing Scenario ID
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                    description: Return code from external software
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
