GET api/grassland/grasshistory_list
Grass History list for determining the Soil Nitrogen Supply status of Grassland Fields
Request Information
Authorization is required
Response Codes
- OK (200)
- NotFound (404)
- BadRequest (400)
- Unauthorized (401)
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Grass Histories
Collection of grasshistory| Name | Description | Type | Additional information |
|---|---|---|---|
| GrassHistoryID |
The ID value for a Grass History item |
integer |
None. |
| GrassHistoryName |
The Text vlaue for a Grass History item |
string |
None. |
| ShowForLightSoils |
Whether to display Grass History for light soil type |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"GrassHistoryID": 1,
"GrassHistoryName": "sample string 2",
"ShowForLightSoils": true
},
{
"GrassHistoryID": 1,
"GrassHistoryName": "sample string 2",
"ShowForLightSoils": true
}
]
application/xml, text/xml
Sample:
<ArrayOfgrasshistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Grassland">
<grasshistory>
<GrassHistoryID>1</GrassHistoryID>
<GrassHistoryName>sample string 2</GrassHistoryName>
<ShowForLightSoils>true</ShowForLightSoils>
</grasshistory>
<grasshistory>
<GrassHistoryID>1</GrassHistoryID>
<GrassHistoryName>sample string 2</GrassHistoryName>
<ShowForLightSoils>true</ShowForLightSoils>
</grasshistory>
</ArrayOfgrasshistory>