openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPS_NEW_CALL:
    post:
      tags:
      - PHOI
      operationId: /rfc/SPS_NEW_CALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DNIS:
                  type: string
                  maxLength: 30
                HANDLE:
                  type: string
                  maxLength: 32
                OPTIONS:
                  type: object
                  properties:
                    OPTION1:
                      type: string
                      maxLength: 10
                      description: 'SAPphone: Setting for handling incoming calls'
                    OPTION2:
                      type: string
                      maxLength: 10
                      description: 'SAPphone: Setting for handling incoming calls'
                    OPTION3:
                      type: string
                      maxLength: 10
                      description: 'SAPphone: Setting for handling incoming calls'
                    OPTION4:
                      type: string
                      maxLength: 10
                      description: 'SAPphone: Setting for handling incoming calls'
                    OPTION5:
                      type: string
                      maxLength: 10
                      description: 'SAPphone: Setting for handling incoming calls'
                OWN_EXTENSION:
                  type: string
                  maxLength: 30
                PROTOCOL:
                  type: string
                  maxLength: 1
                REMOTE_PARTY:
                  type: string
                  maxLength: 30
                SERVER_NAME:
                  type: string
                  maxLength: 6
                CALLDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJNAME:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Info object name'
                      INSTANCE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Info object number'
                      KEYNAME:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Info object information - name'
                      VALUE:
                        type: string
                        maxLength: 255
                        description: 'SAPphone: Info object information - value'
                EXTCALLS:
                  type: array
                  items:
                    type: object
                    properties:
                      HANDLE:
                        type: string
                        maxLength: 32
                        description: Call identifier assigned by WS software
                      STATE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                        enum:
                        - '01'
                        - '00'
                        - '03'
                        - '04'
                        - '06'
                        - '02'
                        - '05'
                        - '07'
                      PARTY:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      PTYPE:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                        enum:
                        - I
                        - E
                      DNIS:
                        type: string
                        maxLength: 30
                        description: Telephone number
              required:
              - HANDLE
              - OWN_EXTENSION
              - SERVER_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CITY:
                    type: string
                    maxLength: 55
                  COMPANY:
                    type: string
                    maxLength: 55
                  COUNTRY:
                    type: string
                    maxLength: 55
                  NAME:
                    type: string
                    maxLength: 55
                  CALLDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJNAME:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Info object name'
                        INSTANCE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Info object number'
                        KEYNAME:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Info object information - name'
                        VALUE:
                          type: string
                          maxLength: 255
                          description: 'SAPphone: Info object information - value'
                  EXTCALLS:
                    type: array
                    items:
                      type: object
                      properties:
                        HANDLE:
                          type: string
                          maxLength: 32
                          description: Call identifier assigned by WS software
                        STATE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                          enum:
                          - '01'
                          - '00'
                          - '03'
                          - '04'
                          - '06'
                          - '02'
                          - '05'
                          - '07'
                        PARTY:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        PTYPE:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                          enum:
                          - I
                          - E
                        DNIS:
                          type: string
                          maxLength: 30
                          description: Telephone number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
