GET api/Report

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SoilReportData
NameDescriptionTypeAdditional information
Id

integer

None.

SoilRecordId

integer

None.

FarmerId

integer

None.

SHCNumber

string

None.

MeterNumber

string

None.

FarmerDetails

FarmerDto

None.

SoilDetails

SoilDetailsDto

None.

SecondaryMicroNutrientRecommendation

Collection of RecommendationResponseMapper

None.

GeneralRecommendations

Collection of RecommendationResponseMapper

None.

SoilTestResult

Collection of SoilTestResultResponseMapper

None.

FertilizerRecommendation

Collection of FertilizerRecommendationResponseMapper

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "SoilRecordId": 2,
    "FarmerId": 3,
    "SHCNumber": "sample string 4",
    "MeterNumber": "sample string 5",
    "FarmerDetails": {
      "FarmerId": 1,
      "Name": "sample string 2",
      "PhoneNumber": "sample string 3",
      "AdhaarCardNumber": "sample string 4",
      "Address": "sample string 5",
      "Tehsil": "sample string 6",
      "Village": "sample string 7",
      "District": "sample string 8",
      "State": "sample string 9",
      "PinCode": "sample string 10"
    },
    "SoilDetails": {
      "SoilRecordId": 1,
      "SoilSerialNumber": "sample string 2",
      "SoilCollectedOn": "2019-03-23T16:35:44.1062522-05:00",
      "SurveyNumber": "sample string 4",
      "SoilColor": "sample string 5",
      "SoilLocation": "sample string 6",
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0
      },
      "SoilTestResultFile": "QEA="
    },
    "SecondaryMicroNutrientRecommendation": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      }
    ],
    "GeneralRecommendations": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      }
    ],
    "SoilTestResult": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Parameter": "sample string 4",
        "Value": 5.1,
        "Unit": "sample string 6",
        "Scale": "sample string 7"
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Parameter": "sample string 4",
        "Value": 5.1,
        "Unit": "sample string 6",
        "Scale": "sample string 7"
      }
    ],
    "FertilizerRecommendation": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Crop": "sample string 4",
        "N": 5.1,
        "P": 6.1,
        "K": 7.1,
        "OptionOneUrea": 8.1,
        "OptionOneSSP": 9.1,
        "OptionOneMOP": 10.1,
        "FertilizerOptionOneUnit": "sample string 11",
        "OptionTwoUrea": 12.1,
        "OptionTwoDAP": 13.1,
        "OptionTwoMOP": 14.1,
        "FertilizerOptionTwoUnit": "sample string 15"
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Crop": "sample string 4",
        "N": 5.1,
        "P": 6.1,
        "K": 7.1,
        "OptionOneUrea": 8.1,
        "OptionOneSSP": 9.1,
        "OptionOneMOP": 10.1,
        "FertilizerOptionOneUnit": "sample string 11",
        "OptionTwoUrea": 12.1,
        "OptionTwoDAP": 13.1,
        "OptionTwoMOP": 14.1,
        "FertilizerOptionTwoUnit": "sample string 15"
      }
    ]
  },
  {
    "Id": 1,
    "SoilRecordId": 2,
    "FarmerId": 3,
    "SHCNumber": "sample string 4",
    "MeterNumber": "sample string 5",
    "FarmerDetails": {
      "FarmerId": 1,
      "Name": "sample string 2",
      "PhoneNumber": "sample string 3",
      "AdhaarCardNumber": "sample string 4",
      "Address": "sample string 5",
      "Tehsil": "sample string 6",
      "Village": "sample string 7",
      "District": "sample string 8",
      "State": "sample string 9",
      "PinCode": "sample string 10"
    },
    "SoilDetails": {
      "SoilRecordId": 1,
      "SoilSerialNumber": "sample string 2",
      "SoilCollectedOn": "2019-03-23T16:35:44.1062522-05:00",
      "SurveyNumber": "sample string 4",
      "SoilColor": "sample string 5",
      "SoilLocation": "sample string 6",
      "Location": {
        "Latitude": 1.0,
        "Longitude": 2.0
      },
      "SoilTestResultFile": "QEA="
    },
    "SecondaryMicroNutrientRecommendation": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      }
    ],
    "GeneralRecommendations": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Unit": "sample string 4",
        "Parameter": "sample string 5",
        "Recommendation": 6.1
      }
    ],
    "SoilTestResult": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Parameter": "sample string 4",
        "Value": 5.1,
        "Unit": "sample string 6",
        "Scale": "sample string 7"
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Parameter": "sample string 4",
        "Value": 5.1,
        "Unit": "sample string 6",
        "Scale": "sample string 7"
      }
    ],
    "FertilizerRecommendation": [
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Crop": "sample string 4",
        "N": 5.1,
        "P": 6.1,
        "K": 7.1,
        "OptionOneUrea": 8.1,
        "OptionOneSSP": 9.1,
        "OptionOneMOP": 10.1,
        "FertilizerOptionOneUnit": "sample string 11",
        "OptionTwoUrea": 12.1,
        "OptionTwoDAP": 13.1,
        "OptionTwoMOP": 14.1,
        "FertilizerOptionTwoUnit": "sample string 15"
      },
      {
        "MasterId": 1,
        "SoilRecordId": 2,
        "FarmerId": 3,
        "Crop": "sample string 4",
        "N": 5.1,
        "P": 6.1,
        "K": 7.1,
        "OptionOneUrea": 8.1,
        "OptionOneSSP": 9.1,
        "OptionOneMOP": 10.1,
        "FertilizerOptionOneUnit": "sample string 11",
        "OptionTwoUrea": 12.1,
        "OptionTwoDAP": 13.1,
        "OptionTwoMOP": 14.1,
        "FertilizerOptionTwoUnit": "sample string 15"
      }
    ]
  }
]

text/xml

Sample:
<ArrayOfSoilReportData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoilTesting.Entities">
  <SoilReportData>
    <FarmerDetails>
      <Address>sample string 5</Address>
      <AdhaarCardNumber>sample string 4</AdhaarCardNumber>
      <District>sample string 8</District>
      <FarmerId>1</FarmerId>
      <Name>sample string 2</Name>
      <PhoneNumber>sample string 3</PhoneNumber>
      <PinCode>sample string 10</PinCode>
      <State>sample string 9</State>
      <Tehsil>sample string 6</Tehsil>
      <Village>sample string 7</Village>
    </FarmerDetails>
    <FarmerId>3</FarmerId>
    <FertilizerRecommendation>
      <FertilizerRecommendationResponseMapper>
        <Crop>sample string 4</Crop>
        <FarmerId>3</FarmerId>
        <FertilizerOptionOneUnit>sample string 11</FertilizerOptionOneUnit>
        <FertilizerOptionTwoUnit>sample string 15</FertilizerOptionTwoUnit>
        <K>7.1</K>
        <N>5.1</N>
        <OptionOneMOP>10.1</OptionOneMOP>
        <OptionOneSSP>9.1</OptionOneSSP>
        <OptionOneUrea>8.1</OptionOneUrea>
        <OptionTwoDAP>13.1</OptionTwoDAP>
        <OptionTwoMOP>14.1</OptionTwoMOP>
        <OptionTwoUrea>12.1</OptionTwoUrea>
        <P>6.1</P>
        <SoilRecordId>2</SoilRecordId>
        <MasterId>1</MasterId>
      </FertilizerRecommendationResponseMapper>
      <FertilizerRecommendationResponseMapper>
        <Crop>sample string 4</Crop>
        <FarmerId>3</FarmerId>
        <FertilizerOptionOneUnit>sample string 11</FertilizerOptionOneUnit>
        <FertilizerOptionTwoUnit>sample string 15</FertilizerOptionTwoUnit>
        <K>7.1</K>
        <N>5.1</N>
        <OptionOneMOP>10.1</OptionOneMOP>
        <OptionOneSSP>9.1</OptionOneSSP>
        <OptionOneUrea>8.1</OptionOneUrea>
        <OptionTwoDAP>13.1</OptionTwoDAP>
        <OptionTwoMOP>14.1</OptionTwoMOP>
        <OptionTwoUrea>12.1</OptionTwoUrea>
        <P>6.1</P>
        <SoilRecordId>2</SoilRecordId>
        <MasterId>1</MasterId>
      </FertilizerRecommendationResponseMapper>
    </FertilizerRecommendation>
    <GeneralRecommendations>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
    </GeneralRecommendations>
    <Id>1</Id>
    <MeterNumber>sample string 5</MeterNumber>
    <SHCNumber>sample string 4</SHCNumber>
    <SecondaryMicroNutrientRecommendation>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
    </SecondaryMicroNutrientRecommendation>
    <SoilDetails>
      <Location>
        <Latitude>1</Latitude>
        <Longitude>2</Longitude>
      </Location>
      <SoilCollectedOn>2019-03-23T16:35:44.1062522-05:00</SoilCollectedOn>
      <SoilColor>sample string 5</SoilColor>
      <SoilLocation>sample string 6</SoilLocation>
      <SoilRecordId>1</SoilRecordId>
      <SoilSerialNumber>sample string 2</SoilSerialNumber>
      <SoilTestResultFile>QEA=</SoilTestResultFile>
      <SurveyNumber>sample string 4</SurveyNumber>
    </SoilDetails>
    <SoilRecordId>2</SoilRecordId>
    <SoilTestResult>
      <SoilTestResultResponseMapper>
        <FarmerId>3</FarmerId>
        <Parameter>sample string 4</Parameter>
        <Scale>sample string 7</Scale>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 6</Unit>
        <Value>5.1</Value>
        <MasterId>1</MasterId>
      </SoilTestResultResponseMapper>
      <SoilTestResultResponseMapper>
        <FarmerId>3</FarmerId>
        <Parameter>sample string 4</Parameter>
        <Scale>sample string 7</Scale>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 6</Unit>
        <Value>5.1</Value>
        <MasterId>1</MasterId>
      </SoilTestResultResponseMapper>
    </SoilTestResult>
  </SoilReportData>
  <SoilReportData>
    <FarmerDetails>
      <Address>sample string 5</Address>
      <AdhaarCardNumber>sample string 4</AdhaarCardNumber>
      <District>sample string 8</District>
      <FarmerId>1</FarmerId>
      <Name>sample string 2</Name>
      <PhoneNumber>sample string 3</PhoneNumber>
      <PinCode>sample string 10</PinCode>
      <State>sample string 9</State>
      <Tehsil>sample string 6</Tehsil>
      <Village>sample string 7</Village>
    </FarmerDetails>
    <FarmerId>3</FarmerId>
    <FertilizerRecommendation>
      <FertilizerRecommendationResponseMapper>
        <Crop>sample string 4</Crop>
        <FarmerId>3</FarmerId>
        <FertilizerOptionOneUnit>sample string 11</FertilizerOptionOneUnit>
        <FertilizerOptionTwoUnit>sample string 15</FertilizerOptionTwoUnit>
        <K>7.1</K>
        <N>5.1</N>
        <OptionOneMOP>10.1</OptionOneMOP>
        <OptionOneSSP>9.1</OptionOneSSP>
        <OptionOneUrea>8.1</OptionOneUrea>
        <OptionTwoDAP>13.1</OptionTwoDAP>
        <OptionTwoMOP>14.1</OptionTwoMOP>
        <OptionTwoUrea>12.1</OptionTwoUrea>
        <P>6.1</P>
        <SoilRecordId>2</SoilRecordId>
        <MasterId>1</MasterId>
      </FertilizerRecommendationResponseMapper>
      <FertilizerRecommendationResponseMapper>
        <Crop>sample string 4</Crop>
        <FarmerId>3</FarmerId>
        <FertilizerOptionOneUnit>sample string 11</FertilizerOptionOneUnit>
        <FertilizerOptionTwoUnit>sample string 15</FertilizerOptionTwoUnit>
        <K>7.1</K>
        <N>5.1</N>
        <OptionOneMOP>10.1</OptionOneMOP>
        <OptionOneSSP>9.1</OptionOneSSP>
        <OptionOneUrea>8.1</OptionOneUrea>
        <OptionTwoDAP>13.1</OptionTwoDAP>
        <OptionTwoMOP>14.1</OptionTwoMOP>
        <OptionTwoUrea>12.1</OptionTwoUrea>
        <P>6.1</P>
        <SoilRecordId>2</SoilRecordId>
        <MasterId>1</MasterId>
      </FertilizerRecommendationResponseMapper>
    </FertilizerRecommendation>
    <GeneralRecommendations>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
    </GeneralRecommendations>
    <Id>1</Id>
    <MeterNumber>sample string 5</MeterNumber>
    <SHCNumber>sample string 4</SHCNumber>
    <SecondaryMicroNutrientRecommendation>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
      <RecommendationResponseMapper>
        <Parameter>sample string 5</Parameter>
        <Recommendation>6.1</Recommendation>
        <FarmerId>3</FarmerId>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 4</Unit>
        <MasterId>1</MasterId>
      </RecommendationResponseMapper>
    </SecondaryMicroNutrientRecommendation>
    <SoilDetails>
      <Location>
        <Latitude>1</Latitude>
        <Longitude>2</Longitude>
      </Location>
      <SoilCollectedOn>2019-03-23T16:35:44.1062522-05:00</SoilCollectedOn>
      <SoilColor>sample string 5</SoilColor>
      <SoilLocation>sample string 6</SoilLocation>
      <SoilRecordId>1</SoilRecordId>
      <SoilSerialNumber>sample string 2</SoilSerialNumber>
      <SoilTestResultFile>QEA=</SoilTestResultFile>
      <SurveyNumber>sample string 4</SurveyNumber>
    </SoilDetails>
    <SoilRecordId>2</SoilRecordId>
    <SoilTestResult>
      <SoilTestResultResponseMapper>
        <FarmerId>3</FarmerId>
        <Parameter>sample string 4</Parameter>
        <Scale>sample string 7</Scale>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 6</Unit>
        <Value>5.1</Value>
        <MasterId>1</MasterId>
      </SoilTestResultResponseMapper>
      <SoilTestResultResponseMapper>
        <FarmerId>3</FarmerId>
        <Parameter>sample string 4</Parameter>
        <Scale>sample string 7</Scale>
        <SoilRecordId>2</SoilRecordId>
        <Unit>sample string 6</Unit>
        <Value>5.1</Value>
        <MasterId>1</MasterId>
      </SoilTestResultResponseMapper>
    </SoilTestResult>
  </SoilReportData>
</ArrayOfSoilReportData>