POST api/Measurement

Request Information

URI Parameters

None.

Body Parameters

MeasurementModel
NameDescriptionTypeAdditional information
MeasurementId

globally unique identifier

None.

TempC

decimal number

None.

Ph

integer

None.

TimeCreated

date

Data type: Date

Unit

UnitModel

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MeasurementViewModel
NameDescriptionTypeAdditional information
MeasurementId

globally unique identifier

None.

TempC

decimal number

None.

Ph

integer

None.

TimeCreated

date

Data type: Date

Unit

UnitViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "MeasurementId": "359e00dd-ff14-4f94-b7b7-8b376f6b3f8b",
  "TempC": 2.1,
  "Ph": 3,
  "TimeCreated": "2025-01-22T20:52:05.1389226+01:00",
  "Unit": {
    "Id": "8ba501e0-199c-4cb5-b25e-b86864842493",
    "Name": "sample string 2",
    "LocLat": 3.1,
    "LocLong": 4.1,
    "DateCreated": "sample string 5",
    "Sensors": [
      {
        "Id": "9f77836f-399e-40c9-9b83-4154f13a9246",
        "Manufacturer": "sample string 2",
        "Model": "sample string 3",
        "DateCreated": "2025-01-22T20:52:05.1389226+01:00"
      },
      {
        "Id": "9f77836f-399e-40c9-9b83-4154f13a9246",
        "Manufacturer": "sample string 2",
        "Model": "sample string 3",
        "DateCreated": "2025-01-22T20:52:05.1389226+01:00"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<MeasurementViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WaterLab.Models">
  <MeasurementId>359e00dd-ff14-4f94-b7b7-8b376f6b3f8b</MeasurementId>
  <Ph>3</Ph>
  <TempC>2.1</TempC>
  <TimeCreated>2025-01-22T20:52:05.1389226+01:00</TimeCreated>
  <Unit>
    <DateCreated>sample string 5</DateCreated>
    <Id>8ba501e0-199c-4cb5-b25e-b86864842493</Id>
    <LocLat>3.1</LocLat>
    <LocLong>4.1</LocLong>
    <Name>sample string 2</Name>
    <Sensors>
      <SensorModel>
        <DateCreated>2025-01-22T20:52:05.1389226+01:00</DateCreated>
        <Id>9f77836f-399e-40c9-9b83-4154f13a9246</Id>
        <Manufacturer>sample string 2</Manufacturer>
        <Model>sample string 3</Model>
      </SensorModel>
      <SensorModel>
        <DateCreated>2025-01-22T20:52:05.1389226+01:00</DateCreated>
        <Id>9f77836f-399e-40c9-9b83-4154f13a9246</Id>
        <Manufacturer>sample string 2</Manufacturer>
        <Model>sample string 3</Model>
      </SensorModel>
    </Sensors>
  </Unit>
</MeasurementViewModel>