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=802
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=803", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=801", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9054/?format=api", "id": 9054, "code": "TS120", "parameter": "Thuốc BVTV Photpho hữu cơ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.726517Z", "last_modified": "2023-11-22T08:36:50.726503Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9055/?format=api", "id": 9055, "code": "TS121", "parameter": "Sal", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.728590Z", "last_modified": "2023-11-22T08:36:50.728574Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9056/?format=api", "id": 9056, "code": "TS124", "parameter": "TDM", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.727402Z", "last_modified": "2023-11-22T08:36:50.727385Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9057/?format=api", "id": 9057, "code": "TS108", "parameter": "Chlordane", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.747180Z", "last_modified": "2023-11-22T08:36:50.747157Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9058/?format=api", "id": 9058, "code": "TS101", "parameter": "CH4", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.752431Z", "last_modified": "2023-11-22T08:36:50.752415Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9059/?format=api", "id": 9059, "code": "TS100", "parameter": "CXHY", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.751678Z", "last_modified": "2023-11-22T08:36:50.751663Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9060/?format=api", "id": 9060, "code": "TS118", "parameter": "Mn", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.752830Z", "last_modified": "2023-11-22T08:36:50.752816Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9061/?format=api", "id": 9061, "code": "TS103", "parameter": "Độ cứng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.752821Z", "last_modified": "2023-11-22T08:36:50.752806Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9062/?format=api", "id": 9062, "code": "TS109", "parameter": "Monocrotophos", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.755655Z", "last_modified": "2023-11-22T08:36:50.755641Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9063/?format=api", "id": 9063, "code": "TS111", "parameter": "Ồn (dBA)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:50.758198Z", "last_modified": "2023-11-22T08:36:50.758183Z" } ] }{ "count": 8132, "next": "