GET api/grassland/grassgrowthclass/{soiltypeid}/{rainfall}/{altitude}/{chalk}

Calculate the Grass Growth Class (GGC) for a Grassland Field

Request Information

Authorization is required

Response Codes

  • OK (200)
  • BadRequest (400)
  • Unauthorized (401)
  • NotFound (404)

URI Parameters

NameDescriptionTypeAdditional information
soiltypeid

The Soil Type ID of the Field

integer

Required

rainfall

The mean Summer Rainfall (April to September inclusive) at the Field

decimal number

Required

altitude

The Altitude of the Field

decimal number

Required

chalk

For Shallow Soils only, need to specify whether over chalk or not

boolean

Required

Body Parameters

None.

Response Information

Resource Description

grassgrowthclass
NameDescriptionTypeAdditional information
GrassGrowthClassID

The ID value for a Grass Growth Class (GGC) item

integer

None.

GrassGrowthClassName

The Text value for a Grass Growth Class (GGC) item

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GrassGrowthClassID": 1,
  "GrassGrowthClassName": "sample string 2"
}

application/xml, text/xml

Sample:
<grassgrowthclass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Grassland">
  <GrassGrowthClassID>1</GrassGrowthClassID>
  <GrassGrowthClassName>sample string 2</GrassGrowthClassName>
</grassgrowthclass>