GET api/agronetmobile/getlistofcropsbystation?stationId={stationId}&lngCode={lngCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stationId | integer |
Required |
|
| lngCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CropListModel| Name | Description | Type | Additional information |
|---|---|---|---|
| lcrops | Collection of CropItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"lcrops": [
{
"Name": "sample string 1",
"CropId": 2
},
{
"Name": "sample string 1",
"CropId": 2
}
]
}
text/html
Sample:
{"lcrops":[{"Name":"sample string 1","CropId":2},{"Name":"sample string 1","CropId":2}]}
application/xml, text/xml
Sample:
<CropListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
<lcrops>
<CropItem>
<CropId>2</CropId>
<Name>sample string 1</Name>
</CropItem>
<CropItem>
<CropId>2</CropId>
<Name>sample string 1</Name>
</CropItem>
</lcrops>
</CropListModel>