GET Crop/Base/All

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Crop
NameDescriptionTypeAdditional information
CropId

integer

None.

Name

string

None.

ProductLineCode

string

None.

Genus

string

None.

Code

string

None.

TrackingCode

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

IsOnlySourcedLocally

boolean

None.

ExperimentGroup

Collection of ExperimentGroup

None.

Experiment

Collection of Experiment

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  null,
  {
    "$id": "1",
    "CropId": 1,
    "Name": "sample string 2",
    "ProductLineCode": "sample string 3",
    "Genus": "sample string 4",
    "Code": "sample string 5",
    "TrackingCode": "sample string 6",
    "LastMaintenanceName": "sample string 7",
    "LastMaintenanceDate": "2024-09-13T23:08:26.2153165+00:00",
    "IsOnlySourcedLocally": true,
    "ExperimentGroup": [
      {
        "$id": "2",
        "ExperimentGroupId": "eb592ffa-f2f4-48a2-86ba-1c2663c5e734",
        "GroupName": "sample string 2",
        "Year": 3,
        "CropId": 1,
        "AddName": "sample string 5",
        "AddDate": "2024-09-13T23:08:26.2153165+00:00",
        "LastMaintenanceName": "sample string 7",
        "LastMaintenanceDate": "2024-09-13T23:08:26.2153165+00:00",
        "Crop": {
          "$ref": "1"
        },
        "ExperimentGrouping": [
          {
            "$id": "3",
            "ExperimentId": "c71ec63e-ca3f-4827-a109-c793ed874b1b",
            "ExperimentGroupId": "eb592ffa-f2f4-48a2-86ba-1c2663c5e734",
            "LastMaintenanceName": "sample string 3",
            "LastMaintenanceDate": "2024-09-13T23:08:26.2153165+00:00",
            "ExperimentGroup": {
              "$ref": "2"
            },
            "ChangeTracker": {
              "$id": "4",
              "State": 2,
              "ObjectsRemovedFromCollectionProperties": {},
              "OriginalValues": {},
              "ExtendedProperties": {},
              "ObjectsAddedToCollectionProperties": {}
            }
          }
        ],
        "ChangeTracker": {
          "$id": "5",
          "State": 2,
          "ObjectsRemovedFromCollectionProperties": {},
          "OriginalValues": {},
          "ExtendedProperties": {},
          "ObjectsAddedToCollectionProperties": {
            "ExperimentGrouping": [
              {
                "$ref": "3"
              }
            ]
          }
        }
      }
    ],
    "Experiment": [
      {
        "$id": "6",
        "ExperimentId": "57e0895e-feeb-4c72-a408-4b397759a80e",
        "Title": "sample string 2",
        "Name": "sample string 3",
        "CropId": 1,
        "ExperimentTypeId": 5,
        "GrowingYear": 6,
        "TotalPlannedLocations": 7,
        "AgreementRequired": true,
        "Description": "sample string 9",
        "NumberOfReplications": 1,
        "AddName": "sample string 10",
        "AddDate": "2024-09-13T23:08:26.2153165+00:00",
        "LastMaintenanceName": "sample string 12",
        "LastMaintenanceDate": "2024-09-13T23:08:26.2153165+00:00",
        "IsSeedLocallySourced": true,
        "IsSeedTreatmentFactor": true,
        "ParentExperimentId": "8d56bbc9-fb66-42ba-9e41-52fa01fc85f0",
        "IsAvailableInTDE": true,
        "IsLocalExperiment": true,
        "ExperimentSubTypeId": 1,
        "SalesSeason": 1,
        "Region": "sample string 17",
        "Country": "sample string 18",
        "CompanyCode": "sample string 19",
        "Crop": {
          "$ref": "1"
        },
        "ExperimentBusinessUnitArea": [
          {
            "$id": "7",
            "ExperimentId": "57e0895e-feeb-4c72-a408-4b397759a80e",
            "BusinessUnitCode": "sample string 2",
            "AddName": "sample string 3",
            "AddDate": "2024-09-13T23:08:26.2153165+00:00",
            "DistrictCode": "sample string 5",
            "Experiment": {
              "$ref": "6"
            },
            "ChangeTracker": {
              "$ref": "4"
            }
          }
        ],
        "ExperimentFactor": [],
        "ExperimentGrouping": [],
        "ExperimentLayout": [],
        "ExperimentLocation": [],
        "Protocol": [],
        "Strip": [],
        "ExperimentMeasurement": [],
        "ExperimentPartnerAssignment": [],
        "ChangeTracker": {
          "$id": "8",
          "State": 2,
          "ObjectsRemovedFromCollectionProperties": {},
          "OriginalValues": {},
          "ExtendedProperties": {},
          "ObjectsAddedToCollectionProperties": {
            "ExperimentBusinessUnitArea": [
              {
                "$ref": "7"
              }
            ]
          }
        }
      }
    ],
    "ChangeTracker": {
      "$id": "9",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {
        "ExperimentGroup": [
          {
            "$ref": "2"
          }
        ],
        "Experiment": [
          {
            "$ref": "6"
          }
        ]
      }
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfCrop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <Crop i:nil="true" />
  <Crop z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties>
        <AddedObjectsForProperty>
          <CollectionPropertyName>ExperimentGroup</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Id="i3" i:type="ExperimentGroup">
              <AddDate>2024-09-13T23:08:26.2153165+00:00</AddDate>
              <AddName>sample string 5</AddName>
              <ChangeTracker z:Id="i4">
                <ExtendedProperties />
                <ObjectsAddedToCollectionProperties>
                  <AddedObjectsForProperty>
                    <CollectionPropertyName>ExperimentGrouping</CollectionPropertyName>
                    <AddedObjects>
                      <ObjectValue z:Id="i5" i:type="ExperimentGrouping">
                        <ChangeTracker z:Id="i6">
                          <ExtendedProperties />
                          <ObjectsAddedToCollectionProperties />
                          <ObjectsRemovedFromCollectionProperties />
                          <OriginalValues />
                          <State>Added</State>
                        </ChangeTracker>
                        <Experiment i:nil="true" />
                        <ExperimentGroup z:Ref="i3" />
                        <ExperimentGroupId>eb592ffa-f2f4-48a2-86ba-1c2663c5e734</ExperimentGroupId>
                        <ExperimentId>c71ec63e-ca3f-4827-a109-c793ed874b1b</ExperimentId>
                        <LastMaintenanceDate>2024-09-13T23:08:26.2153165+00:00</LastMaintenanceDate>
                        <LastMaintenanceName>sample string 3</LastMaintenanceName>
                      </ObjectValue>
                    </AddedObjects>
                  </AddedObjectsForProperty>
                </ObjectsAddedToCollectionProperties>
                <ObjectsRemovedFromCollectionProperties />
                <OriginalValues />
                <State>Added</State>
              </ChangeTracker>
              <Crop z:Ref="i1" />
              <CropId>1</CropId>
              <ExperimentGroupId>eb592ffa-f2f4-48a2-86ba-1c2663c5e734</ExperimentGroupId>
              <ExperimentGrouping>
                <ExperimentGrouping z:Ref="i5" />
              </ExperimentGrouping>
              <GroupName>sample string 2</GroupName>
              <LastMaintenanceDate>2024-09-13T23:08:26.2153165+00:00</LastMaintenanceDate>
              <LastMaintenanceName>sample string 7</LastMaintenanceName>
              <Year>3</Year>
            </ObjectValue>
          </AddedObjects>
        </AddedObjectsForProperty>
        <AddedObjectsForProperty>
          <CollectionPropertyName>Experiment</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Id="i7" i:type="Experiment">
              <AddDate>2024-09-13T23:08:26.2153165+00:00</AddDate>
              <AddName>sample string 10</AddName>
              <AgreementRequired>true</AgreementRequired>
              <ChangeTracker z:Id="i8">
                <ExtendedProperties />
                <ObjectsAddedToCollectionProperties>
                  <AddedObjectsForProperty>
                    <CollectionPropertyName>ExperimentBusinessUnitArea</CollectionPropertyName>
                    <AddedObjects>
                      <ObjectValue z:Id="i9" i:type="ExperimentBusinessUnitArea">
                        <AddDate>2024-09-13T23:08:26.2153165+00:00</AddDate>
                        <AddName>sample string 3</AddName>
                        <BusinessUnit i:nil="true" />
                        <BusinessUnitCode>sample string 2</BusinessUnitCode>
                        <ChangeTracker z:Ref="i6" />
                        <DistrictCode>sample string 5</DistrictCode>
                        <Experiment z:Ref="i7" />
                        <ExperimentId>57e0895e-feeb-4c72-a408-4b397759a80e</ExperimentId>
                      </ObjectValue>
                    </AddedObjects>
                  </AddedObjectsForProperty>
                </ObjectsAddedToCollectionProperties>
                <ObjectsRemovedFromCollectionProperties />
                <OriginalValues />
                <State>Added</State>
              </ChangeTracker>
              <CompanyCode>sample string 19</CompanyCode>
              <Country>sample string 18</Country>
              <Crop z:Ref="i1" />
              <CropId>1</CropId>
              <Description>sample string 9</Description>
              <ExperimentBusinessUnitArea>
                <ExperimentBusinessUnitArea z:Ref="i9" />
              </ExperimentBusinessUnitArea>
              <ExperimentFactor />
              <ExperimentGrouping />
              <ExperimentId>57e0895e-feeb-4c72-a408-4b397759a80e</ExperimentId>
              <ExperimentLayout />
              <ExperimentLocation />
              <ExperimentMeasurement />
              <ExperimentPartnerAssignment />
              <ExperimentSubTypeId>1</ExperimentSubTypeId>
              <ExperimentType i:nil="true" />
              <ExperimentTypeId>5</ExperimentTypeId>
              <GrowingYear>6</GrowingYear>
              <IsAvailableInTDE>true</IsAvailableInTDE>
              <IsLocalExperiment>true</IsLocalExperiment>
              <IsSeedLocallySourced>true</IsSeedLocallySourced>
              <IsSeedTreatmentFactor>true</IsSeedTreatmentFactor>
              <LastMaintenanceDate>2024-09-13T23:08:26.2153165+00:00</LastMaintenanceDate>
              <LastMaintenanceName>sample string 12</LastMaintenanceName>
              <Name>sample string 3</Name>
              <NumberOfReplications>1</NumberOfReplications>
              <ParentExperimentId>8d56bbc9-fb66-42ba-9e41-52fa01fc85f0</ParentExperimentId>
              <Protocol />
              <Region>sample string 17</Region>
              <SalesSeason>1</SalesSeason>
              <Strip />
              <Title>sample string 2</Title>
              <TotalPlannedLocations>7</TotalPlannedLocations>
            </ObjectValue>
          </AddedObjects>
        </AddedObjectsForProperty>
      </ObjectsAddedToCollectionProperties>
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <Code>sample string 5</Code>
    <CropId>1</CropId>
    <Experiment>
      <Experiment z:Ref="i7" />
    </Experiment>
    <ExperimentGroup>
      <ExperimentGroup z:Ref="i3" />
    </ExperimentGroup>
    <Genus>sample string 4</Genus>
    <IsOnlySourcedLocally>true</IsOnlySourcedLocally>
    <LastMaintenanceDate>2024-09-13T23:08:26.2153165+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 7</LastMaintenanceName>
    <Name>sample string 2</Name>
    <ProductLineCode>sample string 3</ProductLineCode>
    <TrackingCode>sample string 6</TrackingCode>
  </Crop>
</ArrayOfCrop>