POST api/DRM?urn={urn}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| urn | string |
Required |
Body Parameters
DRM_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| FarmerName | string |
Matching regular expression pattern: ([a-zA-Z]{2,}$) |
|
| Address1 | string |
None. |
|
| Mobile | integer |
Matching regular expression pattern: ([0-9]{10})$ |
|
| Landlinenumber | string |
Matching regular expression pattern: ([0-9]{5,14})$ |
|
| emailID | string |
Matching regular expression pattern: ([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ |
|
| CropName | string |
None. |
|
| DiseaseDescription | string |
None. |
|
| StateId | integer |
None. |
|
| pincode | string |
Matching regular expression pattern: ([0-9]{6})$ |
|
| Status | string |
None. |
|
| CropId | integer |
None. |
|
| State | string |
None. |
|
| District | string |
Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$ |
|
| Taluka | string |
Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$ |
|
| Village | string |
Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$ |
|
| OtherCropName | string |
None. |
|
| SurveyNumber | string |
None. |
|
| photo1 | HttpPostedFileBase |
None. |
|
| filephoto1 | Collection of byte |
None. |
|
| photo2 | HttpPostedFileBase |
None. |
|
| filephoto2 | Collection of byte |
None. |
|
| photo3 | HttpPostedFileBase |
None. |
|
| filephoto3 | Collection of byte |
None. |
|
| flag | string |
None. |
|
| culture | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"FarmerName": "sample string 2",
"Address1": "sample string 3",
"Mobile": 1,
"Landlinenumber": "sample string 4",
"emailID": "sample string 5",
"CropName": "sample string 6",
"DiseaseDescription": "sample string 7",
"StateId": 8,
"pincode": "sample string 9",
"Status": "sample string 10",
"CropId": 11,
"State": "sample string 12",
"District": "sample string 13",
"Taluka": "sample string 14",
"Village": "sample string 15",
"OtherCropName": "sample string 16",
"SurveyNumber": "sample string 17",
"photo1": null,
"filephoto1": "QEA=",
"photo2": null,
"filephoto2": "QEA=",
"photo3": null,
"filephoto3": "QEA=",
"flag": "sample string 18",
"culture": 19
}
application/xml, text/xml
Sample:
<DRM_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models"> <Address1>sample string 3</Address1> <CropId>11</CropId> <CropName>sample string 6</CropName> <DiseaseDescription>sample string 7</DiseaseDescription> <District>sample string 13</District> <FarmerName>sample string 2</FarmerName> <Landlinenumber>sample string 4</Landlinenumber> <Mobile>1</Mobile> <OtherCropName>sample string 16</OtherCropName> <State>sample string 12</State> <StateId>8</StateId> <Status>sample string 10</Status> <SurveyNumber>sample string 17</SurveyNumber> <Taluka>sample string 14</Taluka> <UserId>1</UserId> <Village>sample string 15</Village> <culture>19</culture> <emailID>sample string 5</emailID> <filephoto1>QEA=</filephoto1> <filephoto2>QEA=</filephoto2> <filephoto3>QEA=</filephoto3> <flag>sample string 18</flag> <photo1 xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> <photo2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> <photo3 xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> <pincode>sample string 9</pincode> </DRM_Input>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.