POST api/Report
Request Information
URI Parameters
None.
Body Parameters
Report| Name | Description | Type | Additional information |
|---|---|---|---|
| USER_ID | string |
None. |
|
| PLOT_ID | string |
None. |
|
| REPORT_ID | string |
None. |
|
| REPORT_TYPE | string |
None. |
|
| REPORT_DESCRIPTION | string |
None. |
|
| LOCATION | string |
None. |
|
| LATITUDE | string |
None. |
|
| LONGITUDE | string |
None. |
|
| REPORT_IMAGE | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"USER_ID": "sample string 1",
"PLOT_ID": "sample string 2",
"REPORT_ID": "sample string 3",
"REPORT_TYPE": "sample string 4",
"REPORT_DESCRIPTION": "sample string 5",
"LOCATION": "sample string 6",
"LATITUDE": "sample string 7",
"LONGITUDE": "sample string 8",
"REPORT_IMAGE": "QEA="
}
application/xml, text/xml
Sample:
<Report xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiCropguru.Models"> <LATITUDE>sample string 7</LATITUDE> <LOCATION>sample string 6</LOCATION> <LONGITUDE>sample string 8</LONGITUDE> <PLOT_ID>sample string 2</PLOT_ID> <REPORT_DESCRIPTION>sample string 5</REPORT_DESCRIPTION> <REPORT_ID>sample string 3</REPORT_ID> <REPORT_IMAGE>QEA=</REPORT_IMAGE> <REPORT_TYPE>sample string 4</REPORT_TYPE> <USER_ID>sample string 1</USER_ID> </Report>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |