openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/INCOMING_CALL:
    post:
      tags:
      - PHOI
      summary: Process incoming calls
      operationId: /rfc/INCOMING_CALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALLSTATE:
                  type: string
                  maxLength: 15
                EXPRESS:
                  type: string
                  maxLength: 1
                HANDLE:
                  type: string
                  maxLength: 32
                NUMBER_CALLING:
                  type: string
                  maxLength: 30
                  description: Number of caller
                NUMBER_DIALED:
                  type: string
                  maxLength: 30
                NUMBER_TRANSFERRED_TO:
                  type: string
                  maxLength: 30
                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'
                PROTOCOL:
                  type: string
                  maxLength: 1
                SERVER_NAME:
                  type: string
                  maxLength: 6
                ADDITIONAL_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 20
                        description: 'SAPphone: Parameter name'
                      VALUE:
                        type: string
                        maxLength: 55
                        description: 'SAPphone: Parameter value (length 55)'
              required:
              - NUMBER_DIALED
      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
                  ADDITIONAL_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 20
                          description: 'SAPphone: Parameter name'
                        VALUE:
                          type: string
                          maxLength: 55
                          description: 'SAPphone: Parameter value (length 55)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
