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": "c3ba602b-a18d-4ea5-b955-23a345eefd01",
      "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": "0ba75ece-9c40-4bf0-bb61-d30561ae42fb",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "d800dc24-a9e6-4f11-a469-916bdb110c71",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        },
        {
          "ExternalDBCropGUID": "0ba75ece-9c40-4bf0-bb61-d30561ae42fb",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "d800dc24-a9e6-4f11-a469-916bdb110c71",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "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": "c3ba602b-a18d-4ea5-b955-23a345eefd01",
      "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": "0ba75ece-9c40-4bf0-bb61-d30561ae42fb",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "d800dc24-a9e6-4f11-a469-916bdb110c71",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            }
          ]
        },
        {
          "ExternalDBCropGUID": "0ba75ece-9c40-4bf0-bb61-d30561ae42fb",
          "ExternalDBCropName": "sample string 1",
          "ExternalDBCropPurposeGUID": "d800dc24-a9e6-4f11-a469-916bdb110c71",
          "ExternalDBCropPurposeName": "sample string 2",
          "Color": {
            "Alpha": -1,
            "Red": -1,
            "Green": -1,
            "Blue": -1
          },
          "ChemistryTypes": [
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "Color": {
                "Alpha": -1,
                "Red": -1,
                "Green": -1,
                "Blue": -1
              },
              "ChemistryTypeName": "sample string 1"
            },
            {
              "ChemistryTypeGuid": "16717cdf-21a9-4739-8a32-3120e3fc149a",
              "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'.