POST api/Userregistration

Request Information

URI Parameters

None.

Body Parameters

FarmerRegistration_Input
NameDescriptionTypeAdditional information
UserID

integer

None.

FirstName

string

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

MiddleName

string

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

LastName

string

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

Username

string

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

Password

string

None.

Address1

string

None.

Address2

string

None.

Pincode

string

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

EmailID

string

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

MobileNumber

integer

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

PhoneNumber

string

Matching regular expression pattern: ([0-9]{5,14})$

FarmerType

integer

None.

UserTypeId

integer

None.

stateID

integer

None.

DistrictName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{0,}$

TalukName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{0,}$

HobliName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{0,}$

VillageName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{0,}$

IMEINumber

integer

None.

IMEIINC

string

None.

IsLoggedIn

boolean

None.

IsMobileVerified

boolean

None.

IsEmailVerified

boolean

None.

EmailActivationCode

globally unique identifier

None.

Department_ID

integer

None.

Designation_ID

integer

None.

Role_ID

integer

None.

Location_ID

integer

None.

Machine_IPAddress

string

None.

ModuleName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "FirstName": "sample string 2",
  "MiddleName": "sample string 3",
  "LastName": "sample string 4",
  "Username": "sample string 5",
  "Password": "sample string 6",
  "Address1": "sample string 7",
  "Address2": "sample string 8",
  "Pincode": "sample string 9",
  "EmailID": "sample string 10",
  "MobileNumber": 11,
  "PhoneNumber": "sample string 12",
  "FarmerType": 13,
  "UserTypeId": 14,
  "stateID": 1,
  "DistrictName": "sample string 15",
  "TalukName": "sample string 16",
  "HobliName": "sample string 17",
  "VillageName": "sample string 18",
  "IMEINumber": 1,
  "IMEIINC": "sample string 19",
  "IsLoggedIn": true,
  "IsMobileVerified": true,
  "IsEmailVerified": true,
  "EmailActivationCode": "a232c081-29bd-42b1-a90e-db76590fff18",
  "Department_ID": 23,
  "Designation_ID": 24,
  "Role_ID": 1,
  "Location_ID": 1,
  "Machine_IPAddress": "sample string 25",
  "ModuleName": "sample string 26"
}

application/xml, text/xml

Sample:
<FarmerRegistration_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <Address1>sample string 7</Address1>
  <Address2>sample string 8</Address2>
  <Department_ID>23</Department_ID>
  <Designation_ID>24</Designation_ID>
  <DistrictName>sample string 15</DistrictName>
  <EmailActivationCode>a232c081-29bd-42b1-a90e-db76590fff18</EmailActivationCode>
  <EmailID>sample string 10</EmailID>
  <FarmerType>13</FarmerType>
  <FirstName>sample string 2</FirstName>
  <HobliName>sample string 17</HobliName>
  <IMEIINC>sample string 19</IMEIINC>
  <IMEINumber>1</IMEINumber>
  <IsEmailVerified>true</IsEmailVerified>
  <IsLoggedIn>true</IsLoggedIn>
  <IsMobileVerified>true</IsMobileVerified>
  <LastName>sample string 4</LastName>
  <Location_ID>1</Location_ID>
  <Machine_IPAddress>sample string 25</Machine_IPAddress>
  <MiddleName>sample string 3</MiddleName>
  <MobileNumber>11</MobileNumber>
  <ModuleName>sample string 26</ModuleName>
  <Password>sample string 6</Password>
  <PhoneNumber>sample string 12</PhoneNumber>
  <Pincode>sample string 9</Pincode>
  <Role_ID>1</Role_ID>
  <TalukName>sample string 16</TalukName>
  <UserID>1</UserID>
  <UserTypeId>14</UserTypeId>
  <Username>sample string 5</Username>
  <VillageName>sample string 18</VillageName>
  <stateID>1</stateID>
</FarmerRegistration_Input>

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

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/" />