POST api/User/RequestForOTP

Request Information

URI Parameters

None.

Body Parameters

RequestOtpModel
NameDescriptionTypeAdditional information
TemporaryId

integer

None.

Mobile

string

None.

CountryCode

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TemporaryId": 1,
  "Mobile": "sample string 2",
  "CountryCode": 3
}

application/xml, text/xml

Sample:
<RequestOtpModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Login">
  <CountryCode>3</CountryCode>
  <Mobile>sample string 2</Mobile>
  <TemporaryId>1</TemporaryId>
</RequestOtpModel>

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 'RequestOtpModel'.

Response Information

Resource Description

ResponseOfResponseOTPModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Status

integer

None.

Result

ResponseOTPModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Status": 3,
  "Result": {
    "OTP": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<ResponseOfResponseOTPModelW218GSWs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Login">
    <d2p1:OTP>sample string 1</d2p1:OTP>
  </Result>
  <Status>3</Status>
</ResponseOfResponseOTPModelW218GSWs>