POST api/Plantation
Request Information
URI Parameters
None.
Body Parameters
PlantationRequestName | Description | Type | Additional information |
---|---|---|---|
BeneficiaryMobileNo | string |
None. |
|
BeneficiaryID | string |
None. |
|
BudyMobileNo | string |
None. |
|
BaseType | string |
None. |
|
SingPath | string |
None. |
|
ProjectID | integer |
None. |
|
ProjectSubID | integer |
None. |
|
SubProjectType | string |
None. |
|
DBID | string |
None. |
|
PlantationDate | string |
None. |
|
AgreementPath | string |
None. |
|
AgreementPathWithPhoto | string |
None. |
|
PlantationTreeArray | Collection of PlantationTreeDetails |
None. |
|
LocationData | Collection of LocationDataPlatation |
None. |
Request Formats
application/json, text/json
Sample:
{ "BeneficiaryMobileNo": "sample string 1", "BeneficiaryID": "sample string 2", "BudyMobileNo": "sample string 3", "BaseType": "sample string 4", "SingPath": "sample string 5", "ProjectID": 6, "ProjectSubID": 7, "SubProjectType": "sample string 8", "DBID": "sample string 9", "PlantationDate": "sample string 10", "AgreementPath": "sample string 11", "AgreementPathWithPhoto": "sample string 12", "PlantationTreeArray": [ { "TreeCount": 1, "TreeGap": "sample string 2", "TreeUnit": "sample string 3", "TreeGap1": "sample string 4", "TreeUnit1": "sample string 5", "TreeName": "sample string 6", "TreeHeight": "sample string 7", "TreeDBH": "sample string 8" }, { "TreeCount": 1, "TreeGap": "sample string 2", "TreeUnit": "sample string 3", "TreeGap1": "sample string 4", "TreeUnit1": "sample string 5", "TreeName": "sample string 6", "TreeHeight": "sample string 7", "TreeDBH": "sample string 8" } ], "LocationData": [ { "Lat": 1.0, "Long": 2.0 }, { "Lat": 1.0, "Long": 2.0 } ] }
application/xml, text/xml
Sample:
<PlantationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiAssignment.Models.Plantation"> <AgreementPath>sample string 11</AgreementPath> <AgreementPathWithPhoto>sample string 12</AgreementPathWithPhoto> <BaseType>sample string 4</BaseType> <BeneficiaryID>sample string 2</BeneficiaryID> <BeneficiaryMobileNo>sample string 1</BeneficiaryMobileNo> <BudyMobileNo>sample string 3</BudyMobileNo> <DBID>sample string 9</DBID> <LocationData> <LocationDataPlatation> <Lat>1</Lat> <Long>2</Long> </LocationDataPlatation> <LocationDataPlatation> <Lat>1</Lat> <Long>2</Long> </LocationDataPlatation> </LocationData> <PlantationDate>sample string 10</PlantationDate> <PlantationTreeArray> <PlantationTreeDetails> <TreeCount>1</TreeCount> <TreeDBH>sample string 8</TreeDBH> <TreeGap>sample string 2</TreeGap> <TreeGap1>sample string 4</TreeGap1> <TreeHeight>sample string 7</TreeHeight> <TreeName>sample string 6</TreeName> <TreeUnit>sample string 3</TreeUnit> <TreeUnit1>sample string 5</TreeUnit1> </PlantationTreeDetails> <PlantationTreeDetails> <TreeCount>1</TreeCount> <TreeDBH>sample string 8</TreeDBH> <TreeGap>sample string 2</TreeGap> <TreeGap1>sample string 4</TreeGap1> <TreeHeight>sample string 7</TreeHeight> <TreeName>sample string 6</TreeName> <TreeUnit>sample string 3</TreeUnit> <TreeUnit1>sample string 5</TreeUnit1> </PlantationTreeDetails> </PlantationTreeArray> <ProjectID>6</ProjectID> <ProjectSubID>7</ProjectSubID> <SingPath>sample string 5</SingPath> <SubProjectType>sample string 8</SubProjectType> </PlantationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.