GET api/MeasurementUnit/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of 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": "196a03a6-fbb5-47ff-ac0f-d162e45eede3",
    "TempC": 2.1,
    "Ph": 3,
    "TimeCreated": "2025-01-22T20:48:40.5208856+01:00",
    "Unit": {
      "Id": "c1b88e39-5d88-4ed0-8300-dc7fab846cc0",
      "Name": "sample string 2",
      "LocLat": 3.1,
      "LocLong": 4.1,
      "DateCreated": "sample string 5",
      "Sensors": [
        {
          "Id": "1351280c-b79f-49dd-9c96-cf5b10b0a23e",
          "Manufacturer": "sample string 2",
          "Model": "sample string 3",
          "DateCreated": "2025-01-22T20:48:40.5208856+01:00"
        },
        {
          "Id": "1351280c-b79f-49dd-9c96-cf5b10b0a23e",
          "Manufacturer": "sample string 2",
          "Model": "sample string 3",
          "DateCreated": "2025-01-22T20:48:40.5208856+01:00"
        }
      ]
    }
  },
  {
    "MeasurementId": "196a03a6-fbb5-47ff-ac0f-d162e45eede3",
    "TempC": 2.1,
    "Ph": 3,
    "TimeCreated": "2025-01-22T20:48:40.5208856+01:00",
    "Unit": {
      "Id": "c1b88e39-5d88-4ed0-8300-dc7fab846cc0",
      "Name": "sample string 2",
      "LocLat": 3.1,
      "LocLong": 4.1,
      "DateCreated": "sample string 5",
      "Sensors": [
        {
          "Id": "1351280c-b79f-49dd-9c96-cf5b10b0a23e",
          "Manufacturer": "sample string 2",
          "Model": "sample string 3",
          "DateCreated": "2025-01-22T20:48:40.5208856+01:00"
        },
        {
          "Id": "1351280c-b79f-49dd-9c96-cf5b10b0a23e",
          "Manufacturer": "sample string 2",
          "Model": "sample string 3",
          "DateCreated": "2025-01-22T20:48:40.5208856+01:00"
        }
      ]
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfMeasurementViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WaterLab.Models">
  <MeasurementViewModel>
    <MeasurementId>196a03a6-fbb5-47ff-ac0f-d162e45eede3</MeasurementId>
    <Ph>3</Ph>
    <TempC>2.1</TempC>
    <TimeCreated>2025-01-22T20:48:40.5208856+01:00</TimeCreated>
    <Unit>
      <DateCreated>sample string 5</DateCreated>
      <Id>c1b88e39-5d88-4ed0-8300-dc7fab846cc0</Id>
      <LocLat>3.1</LocLat>
      <LocLong>4.1</LocLong>
      <Name>sample string 2</Name>
      <Sensors>
        <SensorModel>
          <DateCreated>2025-01-22T20:48:40.5208856+01:00</DateCreated>
          <Id>1351280c-b79f-49dd-9c96-cf5b10b0a23e</Id>
          <Manufacturer>sample string 2</Manufacturer>
          <Model>sample string 3</Model>
        </SensorModel>
        <SensorModel>
          <DateCreated>2025-01-22T20:48:40.5208856+01:00</DateCreated>
          <Id>1351280c-b79f-49dd-9c96-cf5b10b0a23e</Id>
          <Manufacturer>sample string 2</Manufacturer>
          <Model>sample string 3</Model>
        </SensorModel>
      </Sensors>
    </Unit>
  </MeasurementViewModel>
  <MeasurementViewModel>
    <MeasurementId>196a03a6-fbb5-47ff-ac0f-d162e45eede3</MeasurementId>
    <Ph>3</Ph>
    <TempC>2.1</TempC>
    <TimeCreated>2025-01-22T20:48:40.5208856+01:00</TimeCreated>
    <Unit>
      <DateCreated>sample string 5</DateCreated>
      <Id>c1b88e39-5d88-4ed0-8300-dc7fab846cc0</Id>
      <LocLat>3.1</LocLat>
      <LocLong>4.1</LocLong>
      <Name>sample string 2</Name>
      <Sensors>
        <SensorModel>
          <DateCreated>2025-01-22T20:48:40.5208856+01:00</DateCreated>
          <Id>1351280c-b79f-49dd-9c96-cf5b10b0a23e</Id>
          <Manufacturer>sample string 2</Manufacturer>
          <Model>sample string 3</Model>
        </SensorModel>
        <SensorModel>
          <DateCreated>2025-01-22T20:48:40.5208856+01:00</DateCreated>
          <Id>1351280c-b79f-49dd-9c96-cf5b10b0a23e</Id>
          <Manufacturer>sample string 2</Manufacturer>
          <Model>sample string 3</Model>
        </SensorModel>
      </Sensors>
    </Unit>
  </MeasurementViewModel>
</ArrayOfMeasurementViewModel>