POST api/SendOTP

Request Information

URI Parameters

None.

Body Parameters

OtpModel
NameDescriptionTypeAdditional information
MobileNumber

integer

Matching regular expression pattern: ([0-9]{10})$

EmailID

string

Matching regular expression pattern: ([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$

Request Formats

application/json, text/json

Sample:
{
  "MobileNumber": 1,
  "EmailID": "sample string 1"
}

application/xml, text/xml

Sample:
<OtpModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <EmailID>sample string 1</EmailID>
  <MobileNumber>1</MobileNumber>
</OtpModel>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.