GET api/previouscropping/previousgrass_list
The full list of available Previous Grasses
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Previous Grasses
Collection of previousgrassName | Description | Type | Additional information |
---|---|---|---|
PreviousGrassID |
The ID value for a Previous Grass item |
integer |
None. |
PreviousGrassName |
The Text value for a Previous Grass item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "PreviousGrassID": 1, "PreviousGrassName": "sample string 2" }, { "PreviousGrassID": 1, "PreviousGrassName": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfpreviousgrass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.PreviousCropping"> <previousgrass> <PreviousGrassID>1</PreviousGrassID> <PreviousGrassName>sample string 2</PreviousGrassName> </previousgrass> <previousgrass> <PreviousGrassID>1</PreviousGrassID> <PreviousGrassName>sample string 2</PreviousGrassName> </previousgrass> </ArrayOfpreviousgrass>