DELETE api/Measurements/{id}

Usuwa dane pomiaru o identyfikatorze id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Measurement
NameDescriptionTypeAdditional 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-16T02:59:37.023564+01:00"
}

application/xml, text/xml

Sample:
<Measurement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestWebApi.Models">
  <Author>sample string 2</Author>
  <Date>2025-12-16T02:59:37.023564+01:00</Date>
  <Gage>sample string 3</Gage>
  <MeasurementId>1</MeasurementId>
</Measurement>