GET api/Measurement
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of MeasurementViewModelName | Description | Type | Additional 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": "ecdb069a-967f-46b5-a74c-807ed8b36664", "TempC": 2.1, "Ph": 3, "TimeCreated": "2025-01-22T21:04:03.7735096+01:00", "Unit": { "Id": "238208f0-d87d-4396-adb5-f39079941a33", "Name": "sample string 2", "LocLat": 3.1, "LocLong": 4.1, "DateCreated": "sample string 5", "Sensors": [ { "Id": "f6b76889-2023-48f7-8a43-41c5fe2a77f6", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:04:03.7735096+01:00" }, { "Id": "f6b76889-2023-48f7-8a43-41c5fe2a77f6", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:04:03.7735096+01:00" } ] } }, { "MeasurementId": "ecdb069a-967f-46b5-a74c-807ed8b36664", "TempC": 2.1, "Ph": 3, "TimeCreated": "2025-01-22T21:04:03.7735096+01:00", "Unit": { "Id": "238208f0-d87d-4396-adb5-f39079941a33", "Name": "sample string 2", "LocLat": 3.1, "LocLong": 4.1, "DateCreated": "sample string 5", "Sensors": [ { "Id": "f6b76889-2023-48f7-8a43-41c5fe2a77f6", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:04:03.7735096+01:00" }, { "Id": "f6b76889-2023-48f7-8a43-41c5fe2a77f6", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:04:03.7735096+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>ecdb069a-967f-46b5-a74c-807ed8b36664</MeasurementId> <Ph>3</Ph> <TempC>2.1</TempC> <TimeCreated>2025-01-22T21:04:03.7735096+01:00</TimeCreated> <Unit> <DateCreated>sample string 5</DateCreated> <Id>238208f0-d87d-4396-adb5-f39079941a33</Id> <LocLat>3.1</LocLat> <LocLong>4.1</LocLong> <Name>sample string 2</Name> <Sensors> <SensorModel> <DateCreated>2025-01-22T21:04:03.7735096+01:00</DateCreated> <Id>f6b76889-2023-48f7-8a43-41c5fe2a77f6</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> <SensorModel> <DateCreated>2025-01-22T21:04:03.7735096+01:00</DateCreated> <Id>f6b76889-2023-48f7-8a43-41c5fe2a77f6</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> </Sensors> </Unit> </MeasurementViewModel> <MeasurementViewModel> <MeasurementId>ecdb069a-967f-46b5-a74c-807ed8b36664</MeasurementId> <Ph>3</Ph> <TempC>2.1</TempC> <TimeCreated>2025-01-22T21:04:03.7735096+01:00</TimeCreated> <Unit> <DateCreated>sample string 5</DateCreated> <Id>238208f0-d87d-4396-adb5-f39079941a33</Id> <LocLat>3.1</LocLat> <LocLong>4.1</LocLong> <Name>sample string 2</Name> <Sensors> <SensorModel> <DateCreated>2025-01-22T21:04:03.7735096+01:00</DateCreated> <Id>f6b76889-2023-48f7-8a43-41c5fe2a77f6</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> <SensorModel> <DateCreated>2025-01-22T21:04:03.7735096+01:00</DateCreated> <Id>f6b76889-2023-48f7-8a43-41c5fe2a77f6</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> </Sensors> </Unit> </MeasurementViewModel> </ArrayOfMeasurementViewModel>