GET api/Measurements
Pobiera dane wszystkich pomiarów .
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Measurement| Name | Description | Type | Additional information |
|---|---|---|---|
| MeasurementId |
Identyfikator pomiaru nadawany automatycznie, można go pominąć. |
integer |
None. |
| Author |
Autor pomiaru. |
string |
String length: inclusive between 0 and 50 |
| Gage |
Opis przyrzadu lub co jest mierzone. |
string |
String length: inclusive between 0 and 50 |
| Date |
Data pomiaru, można pominąć, wtedy będzie wpisana bieżąca data i czas. |
date |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"MeasurementId": 1,
"Author": "sample string 2",
"Gage": "sample string 3",
"Date": "2025-12-16T09:06:49.7557642+01:00"
},
{
"MeasurementId": 1,
"Author": "sample string 2",
"Gage": "sample string 3",
"Date": "2025-12-16T09:06:49.7557642+01:00"
}
]
application/xml, text/xml
Sample:
<ArrayOfMeasurement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestWebApi.Models">
<Measurement>
<Author>sample string 2</Author>
<Date>2025-12-16T09:06:49.7557642+01:00</Date>
<Gage>sample string 3</Gage>
<MeasurementId>1</MeasurementId>
</Measurement>
<Measurement>
<Author>sample string 2</Author>
<Date>2025-12-16T09:06:49.7557642+01:00</Date>
<Gage>sample string 3</Gage>
<MeasurementId>1</MeasurementId>
</Measurement>
</ArrayOfMeasurement>