POST api/Soil

Request Information

URI Parameters

None.

Body Parameters

SoilDetailsDto
NameDescriptionTypeAdditional information
SoilRecordId

integer

None.

SoilSerialNumber

string

None.

SoilCollectedOn

date

None.

SurveyNumber

string

None.

SoilColor

string

None.

SoilLocation

string

None.

Location

GeoPosition

None.

SoilTestResultFile

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "SoilRecordId": 1,
  "SoilSerialNumber": "sample string 2",
  "SoilCollectedOn": "2019-01-23T08:42:37.0187506-06:00",
  "SurveyNumber": "sample string 4",
  "SoilColor": "sample string 5",
  "SoilLocation": "sample string 6",
  "Location": {
    "Latitude": 1.0,
    "Longitude": 2.0
  },
  "SoilTestResultFile": "QEA="
}

text/xml

Sample:
<SoilDetailsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoilTesting.Entities">
  <Location>
    <Latitude>1</Latitude>
    <Longitude>2</Longitude>
  </Location>
  <SoilCollectedOn>2019-01-23T08:42:37.0187506-06: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>
</SoilDetailsDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

text/xml

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