Observation Type List
Query parameters
code
Text filter on the code
field. All text field filter methods,
like startswith
, endswith
, icontains
are supported.
parameter
Text filter on parameter
field. All text field filter methods,
like startswith
, endswith
, icontains
are supported.
unit
Text filter on unit
field. All text field filter methods,
like startswith
, endswith
, icontains
are supported.
created:
Temporal filter on created
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; created__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
last_modified:
Temporal filter on last_modified
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; last_modified__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
Examples
?code=27234
?parameter__icontains=In bedrijf
?unit__iexact=m3/d
?created__gte=2017-01-01T00:00:00Z
?last_modified__lt=2018-01-01T00:00:00Z
POST
Creating an invitation requires a POST to a list url:
POST api/v4/observationtypes/
Request body example:
{
code": "gwaterlvl_mMSL",
parameter": "Water level",
unit": "m",
scale": "interval",
"description": "Water level in meters with Mean Sea Level (MSL)
as reference datum, measured in groundwater (GW)
and displayed as a line chart (interval).",
"reference_frame": "MSL",
"compartment": "GW"
}
Where scale can be one of the following values:
nominal
, ordinal
, interval
, ratio
.
GET /api/v4/observationtypes/?format=api&page=781
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=782", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=780", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8844/?format=api", "id": 8844, "code": "Dầu mỡ động, thực vật", "parameter": "Dầu mỡ động, thực vật", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.346603Z", "last_modified": "2023-11-22T07:35:10.346585Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8845/?format=api", "id": 8845, "code": "Độ đục", "parameter": "Độ đục", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.347994Z", "last_modified": "2023-11-22T07:35:10.347977Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8846/?format=api", "id": 8846, "code": "H2S", "parameter": "H2S", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.349178Z", "last_modified": "2023-11-22T07:35:10.349163Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8847/?format=api", "id": 8847, "code": "Na+", "parameter": "Na+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.559309Z", "last_modified": "2023-11-22T07:35:10.559291Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8848/?format=api", "id": 8848, "code": "Mg2+", "parameter": "Mg2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.690545Z", "last_modified": "2023-11-22T07:35:10.690530Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8849/?format=api", "id": 8849, "code": "SiO2", "parameter": "SiO2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.693006Z", "last_modified": "2023-11-22T07:35:10.692989Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8850/?format=api", "id": 8850, "code": "HCO3", "parameter": "HCO3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.709821Z", "last_modified": "2023-11-22T07:35:10.709803Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8851/?format=api", "id": 8851, "code": "Màu", "parameter": "Màu", "unit": "Pt/Co", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.859630Z", "last_modified": "2023-11-22T07:35:10.859616Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8852/?format=api", "id": 8852, "code": "Tổng Crom", "parameter": "Tổng Crom", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:10.882153Z", "last_modified": "2023-11-22T07:35:10.882137Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8853/?format=api", "id": 8853, "code": "SO4", "parameter": "SO4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.276350Z", "last_modified": "2023-11-22T07:35:11.276335Z" } ] }{ "count": 8137, "next": "