POST api/UserregistrationOTPBased

Request Information

URI Parameters

None.

Body Parameters

FarmerDetailsOTPBasedReg
NameDescriptionTypeAdditional information
UserName

string

Matching regular expression pattern: ([a-zA-Z]{2,}$)

LastName

string

Matching regular expression pattern: ([a-zA-Z]{2,}$)

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})$

Address1

string

None.

Address2

string

None.

UserTypeId

integer

None.

Machine_IPAddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "LastName": "sample string 2",
  "MobileNumber": 3,
  "EmailID": "sample string 4",
  "Address1": "sample string 5",
  "Address2": "sample string 6",
  "UserTypeId": 7,
  "Machine_IPAddress": "sample string 8"
}

application/xml, text/xml

Sample:
<FarmerDetailsOTPBasedReg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models.Models.FarmerRegistration">
  <Address1>sample string 5</Address1>
  <Address2>sample string 6</Address2>
  <EmailID>sample string 4</EmailID>
  <LastName>sample string 2</LastName>
  <Machine_IPAddress>sample string 8</Machine_IPAddress>
  <MobileNumber>3</MobileNumber>
  <UserName>sample string 1</UserName>
  <UserTypeId>7</UserTypeId>
</FarmerDetailsOTPBasedReg>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />