GET api/grassland/grasssequence_list/{seasonid}/{typeid}
Full list of available Grass Sequences for Grassland fields
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
seasonid |
Whether the field sequence starts with establishment or not. If it does, then whether it is an autumn or spring establishment |
integer |
Required |
typeid |
The Field Type ID |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Grass Sequences
Collection of grasssequenceitemName | Description | Type | Additional information |
---|---|---|---|
GrassSequenceID |
The ID value for a Grass Sequence item |
integer |
None. |
GrassSequenceName |
The Text value for a Grass Sequence item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "GrassSequenceID": 1, "GrassSequenceName": "sample string 2" }, { "GrassSequenceID": 1, "GrassSequenceName": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfgrasssequenceitem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Grassland"> <grasssequenceitem> <GrassSequenceID>1</GrassSequenceID> <GrassSequenceName>sample string 2</GrassSequenceName> </grasssequenceitem> <grasssequenceitem> <GrassSequenceID>1</GrassSequenceID> <GrassSequenceName>sample string 2</GrassSequenceName> </grasssequenceitem> </ArrayOfgrasssequenceitem>