GET Crop/GetCrop?name={name}&SMPCropGUID={SMPCropGUID}

Returns a list of crop types and crop maintenance information.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
name

Crop Name or GUID (optional)

string

Default value is string.Empty

SMPCropGUID

Sky Mapping Premium Crop GUID (optional)

globally unique identifier

Body Parameters

Response Information

Resource Description

Returns a list of crop types and crop maintenance information.

AgvCrop
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many Crop JSON Objects.

string
CropList

JSON Object of Crop.

Collection of clsCropMaint

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "2",
  "CropList": [
    {
      "UniqueID": 1,
      "Description": "sample string 2",
      "Units": "sample string 3",
      "N": "sample string 4",
      "P": "sample string 5",
      "K": "sample string 6",
      "CA": "sample string 7",
      "MG": "sample string 8",
      "S": "sample string 9",
      "NA": "sample string 10",
      "ZN": "sample string 11",
      "FE": "sample string 12",
      "MN": "sample string 13",
      "CU": "sample string 14",
      "B": "sample string 15",
      "UD": "sample string 16",
      "NContrib": "sample string 17",
      "CropType": "sample string 18",
      "XRef": "sample string 19",
      "MPSGuid": "a289356d-edf8-4e4b-82d7-2e6409d28fd5",
      "MPSLbsPerMarketUnit": 28.1,
      "MPSTargetAdjustmentValue": 30.1,
      "MPSAdjustmentName": "sample string 32",
      "MPSYieldGoal": 34.1,
      "RateUnits": "sample string 40",
      "ExternalId": "sample string 41",
      "CropColor": {
        "Alpha": -1,
        "Red": -1,
        "Green": -1,
        "Blue": -1
      },
      "ExternalDBCropPurposes": [
        {
          "ExternalDBCropGUID": "ca3bb0d4-7d57-4e3f-9c2c-951a97958757",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "c4dfd462-fff8-447c-bf97-700f96c6cb31",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        },
        {
          "ExternalDBCropGUID": "ca3bb0d4-7d57-4e3f-9c2c-951a97958757",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "c4dfd462-fff8-447c-bf97-700f96c6cb31",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        }
      ]
    },
    {
      "UniqueID": 1,
      "Description": "sample string 2",
      "Units": "sample string 3",
      "N": "sample string 4",
      "P": "sample string 5",
      "K": "sample string 6",
      "CA": "sample string 7",
      "MG": "sample string 8",
      "S": "sample string 9",
      "NA": "sample string 10",
      "ZN": "sample string 11",
      "FE": "sample string 12",
      "MN": "sample string 13",
      "CU": "sample string 14",
      "B": "sample string 15",
      "UD": "sample string 16",
      "NContrib": "sample string 17",
      "CropType": "sample string 18",
      "XRef": "sample string 19",
      "MPSGuid": "a289356d-edf8-4e4b-82d7-2e6409d28fd5",
      "MPSLbsPerMarketUnit": 28.1,
      "MPSTargetAdjustmentValue": 30.1,
      "MPSAdjustmentName": "sample string 32",
      "MPSYieldGoal": 34.1,
      "RateUnits": "sample string 40",
      "ExternalId": "sample string 41",
      "CropColor": {
        "Alpha": -1,
        "Red": -1,
        "Green": -1,
        "Blue": -1
      },
      "ExternalDBCropPurposes": [
        {
          "ExternalDBCropGUID": "ca3bb0d4-7d57-4e3f-9c2c-951a97958757",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "c4dfd462-fff8-447c-bf97-700f96c6cb31",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        },
        {
          "ExternalDBCropGUID": "ca3bb0d4-7d57-4e3f-9c2c-951a97958757",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "c4dfd462-fff8-447c-bf97-700f96c6cb31",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "74c2a368-e799-4a85-8b6d-97061da43ea1",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        }
      ]
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: No set method for property 'Blue' in type 'SSI.Crop.clsCropMaint+ClsAgvColor'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: No set method for property 'Blue' in type 'SSI.Crop.clsCropMaint+ClsAgvColor'.