POST api/Dialer/CreateDialerIfNotExist

Request Information

URI Parameters

None.

Body Parameters

DialerPost
NameDescriptionTypeAdditional information
dialerID

integer

None.

localIp

string

None.

minPort

integer

None.

maxPort

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "dialerID": 1,
  "localIp": "sample string 2",
  "minPort": 3,
  "maxPort": 4
}

application/xml, text/xml

Sample:
<DialerPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models.Dialer">
  <dialerID>1</dialerID>
  <localIp>sample string 2</localIp>
  <maxPort>4</maxPort>
  <minPort>3</minPort>
</DialerPost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DialerPost'.

Response Information

Resource Description

DefaultResultModel
NameDescriptionTypeAdditional information
success

boolean

None.

error

DefaultResultErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": {
    "message": "sample string 1",
    "stacktrace": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<DefaultResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models">
  <error>
    <message>sample string 1</message>
    <stacktrace>sample string 2</stacktrace>
  </error>
  <success>true</success>
</DefaultResultModel>