GET api/Measurement/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
Body Parameters
None.
Response Information
Resource Description
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": "96c71e9c-2dc7-40e7-a65a-6c74067cfea6", "TempC": 2.1, "Ph": 3, "TimeCreated": "2025-01-22T21:06:47.6588927+01:00", "Unit": { "Id": "553cb78f-6490-4f1c-bcfa-91738ef6fb1e", "Name": "sample string 2", "LocLat": 3.1, "LocLong": 4.1, "DateCreated": "sample string 5", "Sensors": [ { "Id": "35db9946-6cfc-4008-b8d6-003be935355c", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:06:47.6588927+01:00" }, { "Id": "35db9946-6cfc-4008-b8d6-003be935355c", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:06:47.6588927+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>96c71e9c-2dc7-40e7-a65a-6c74067cfea6</MeasurementId> <Ph>3</Ph> <TempC>2.1</TempC> <TimeCreated>2025-01-22T21:06:47.6588927+01:00</TimeCreated> <Unit> <DateCreated>sample string 5</DateCreated> <Id>553cb78f-6490-4f1c-bcfa-91738ef6fb1e</Id> <LocLat>3.1</LocLat> <LocLong>4.1</LocLong> <Name>sample string 2</Name> <Sensors> <SensorModel> <DateCreated>2025-01-22T21:06:47.6588927+01:00</DateCreated> <Id>35db9946-6cfc-4008-b8d6-003be935355c</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> <SensorModel> <DateCreated>2025-01-22T21:06:47.6588927+01:00</DateCreated> <Id>35db9946-6cfc-4008-b8d6-003be935355c</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel> </Sensors> </Unit> </MeasurementViewModel>