POST api/Report

Request Information

URI Parameters

None.

Body Parameters

SoilReportParametersDto
NameDescriptionTypeAdditional information
SoilRecordId

integer

None.

FarmerId

integer

None.

SHCNumber

string

None.

MeterNumber

string

None.

SecondaryMicroNutrientRecommendation

Collection of RecommendationDto

None.

SecondaryMicroNutrientRecommendationUnit

string

None.

GeneralRecommendations

Collection of RecommendationDto

None.

GeneralRecommendationsUnit

string

None.

SoilTestResult

Collection of SoilTestResultDto

None.

FertilizerRecommendation

Collection of FertilizerRecommendationDto

None.

Request Formats

application/json, text/json

Sample:
{
  "SoilRecordId": 1,
  "FarmerId": 2,
  "SHCNumber": "sample string 3",
  "MeterNumber": "sample string 4",
  "SecondaryMicroNutrientRecommendation": [
    {
      "Parameter": "sample string 1",
      "Recommendation": 2.1
    },
    {
      "Parameter": "sample string 1",
      "Recommendation": 2.1
    }
  ],
  "SecondaryMicroNutrientRecommendationUnit": "sample string 5",
  "GeneralRecommendations": [
    {
      "Parameter": "sample string 1",
      "Recommendation": 2.1
    },
    {
      "Parameter": "sample string 1",
      "Recommendation": 2.1
    }
  ],
  "GeneralRecommendationsUnit": "sample string 6",
  "SoilTestResult": [
    {
      "Parameter": "sample string 1",
      "Value": 2.1,
      "Unit": "sample string 3",
      "Scale": "sample string 4"
    },
    {
      "Parameter": "sample string 1",
      "Value": 2.1,
      "Unit": "sample string 3",
      "Scale": "sample string 4"
    }
  ],
  "FertilizerRecommendation": [
    {
      "Crop": "sample string 1",
      "N": 2.1,
      "P": 3.1,
      "K": 4.1,
      "FertilizerOptionOne": {
        "Urea": 1.1,
        "SSP": 2.1,
        "MOP": 3.1
      },
      "FertilizerOptionOneUnit": "sample string 5",
      "FertilizerOptionTwo": {
        "Urea": 1.1,
        "DAP": 2.1,
        "MOP": 3.1
      },
      "FertilizerOptionTwoUnit": "sample string 6"
    },
    {
      "Crop": "sample string 1",
      "N": 2.1,
      "P": 3.1,
      "K": 4.1,
      "FertilizerOptionOne": {
        "Urea": 1.1,
        "SSP": 2.1,
        "MOP": 3.1
      },
      "FertilizerOptionOneUnit": "sample string 5",
      "FertilizerOptionTwo": {
        "Urea": 1.1,
        "DAP": 2.1,
        "MOP": 3.1
      },
      "FertilizerOptionTwoUnit": "sample string 6"
    }
  ]
}

text/xml

Sample:
<SoilReportParametersDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoilTesting.Entities">
  <FarmerId>2</FarmerId>
  <FertilizerRecommendation>
    <FertilizerRecommendationDto>
      <Crop>sample string 1</Crop>
      <FertilizerOptionOne>
        <MOP>3.1</MOP>
        <SSP>2.1</SSP>
        <Urea>1.1</Urea>
      </FertilizerOptionOne>
      <FertilizerOptionOneUnit>sample string 5</FertilizerOptionOneUnit>
      <FertilizerOptionTwo>
        <DAP>2.1</DAP>
        <MOP>3.1</MOP>
        <Urea>1.1</Urea>
      </FertilizerOptionTwo>
      <FertilizerOptionTwoUnit>sample string 6</FertilizerOptionTwoUnit>
      <K>4.1</K>
      <N>2.1</N>
      <P>3.1</P>
    </FertilizerRecommendationDto>
    <FertilizerRecommendationDto>
      <Crop>sample string 1</Crop>
      <FertilizerOptionOne>
        <MOP>3.1</MOP>
        <SSP>2.1</SSP>
        <Urea>1.1</Urea>
      </FertilizerOptionOne>
      <FertilizerOptionOneUnit>sample string 5</FertilizerOptionOneUnit>
      <FertilizerOptionTwo>
        <DAP>2.1</DAP>
        <MOP>3.1</MOP>
        <Urea>1.1</Urea>
      </FertilizerOptionTwo>
      <FertilizerOptionTwoUnit>sample string 6</FertilizerOptionTwoUnit>
      <K>4.1</K>
      <N>2.1</N>
      <P>3.1</P>
    </FertilizerRecommendationDto>
  </FertilizerRecommendation>
  <GeneralRecommendations>
    <RecommendationDto>
      <Parameter>sample string 1</Parameter>
      <Recommendation>2.1</Recommendation>
    </RecommendationDto>
    <RecommendationDto>
      <Parameter>sample string 1</Parameter>
      <Recommendation>2.1</Recommendation>
    </RecommendationDto>
  </GeneralRecommendations>
  <GeneralRecommendationsUnit>sample string 6</GeneralRecommendationsUnit>
  <MeterNumber>sample string 4</MeterNumber>
  <SHCNumber>sample string 3</SHCNumber>
  <SecondaryMicroNutrientRecommendation>
    <RecommendationDto>
      <Parameter>sample string 1</Parameter>
      <Recommendation>2.1</Recommendation>
    </RecommendationDto>
    <RecommendationDto>
      <Parameter>sample string 1</Parameter>
      <Recommendation>2.1</Recommendation>
    </RecommendationDto>
  </SecondaryMicroNutrientRecommendation>
  <SecondaryMicroNutrientRecommendationUnit>sample string 5</SecondaryMicroNutrientRecommendationUnit>
  <SoilRecordId>1</SoilRecordId>
  <SoilTestResult>
    <SoilTestResultDto>
      <Parameter>sample string 1</Parameter>
      <Scale>sample string 4</Scale>
      <Unit>sample string 3</Unit>
      <Value>2.1</Value>
    </SoilTestResultDto>
    <SoilTestResultDto>
      <Parameter>sample string 1</Parameter>
      <Scale>sample string 4</Scale>
      <Unit>sample string 3</Unit>
      <Value>2.1</Value>
    </SoilTestResultDto>
  </SoilTestResult>
</SoilReportParametersDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>