POST api/UserValidation

Request Information

URI Parameters

None.

Body Parameters

UserValidationInfo
NameDescriptionTypeAdditional information
UserName

string

Matching regular expression pattern: ^[a-zA-Z0-9_.]+$

Mobile_Number

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:
{
  "UserName": "sample string 1",
  "Mobile_Number": 1,
  "EmailId": "sample string 2"
}

application/xml, text/xml

Sample:
<UserValidationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <EmailId>sample string 2</EmailId>
  <Mobile_Number>1</Mobile_Number>
  <UserName>sample string 1</UserName>
</UserValidationInfo>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.