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=808
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=809", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=807", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9114/?format=api", "id": 9114, "code": "TS157", "parameter": "Độ dẫn điện", "unit": "msc/cm", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.398302Z", "last_modified": "2023-11-22T08:36:52.398286Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9115/?format=api", "id": 9115, "code": "TS161", "parameter": "Malation", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.398800Z", "last_modified": "2023-11-22T08:36:52.398786Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9116/?format=api", "id": 9116, "code": "TS163", "parameter": "Bromophos-methyl", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.401566Z", "last_modified": "2023-11-22T08:36:52.401551Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9117/?format=api", "id": 9117, "code": "TS159", "parameter": "tổng P", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.402687Z", "last_modified": "2023-11-22T08:36:52.402673Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9118/?format=api", "id": 9118, "code": "TS160", "parameter": "Paration", "unit": "µg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.404593Z", "last_modified": "2023-11-22T08:36:52.404576Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9119/?format=api", "id": 9119, "code": "TS162", "parameter": "Ethyl parathion", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:52.408264Z", "last_modified": "2023-11-22T08:36:52.408250Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9120/?format=api", "id": 9120, "code": "rise_period", "parameter": "Time", "unit": "h", "scale": "interval", "description": "Period between wavefront and max waterdepth (for LDO)", "domain_values": null, "reference_frame": null, "compartment": null, "created": "2023-11-28T18:45:28.130554Z", "last_modified": "2023-11-28T18:46:14.946788Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9121/?format=api", "id": 9121, "code": "nhiet_do", "parameter": "nhiet_do", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-12-06T05:11:24.908960Z", "last_modified": "2023-12-06T05:11:24.908942Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9122/?format=api", "id": 9122, "code": "dau_mo", "parameter": "dau_mo", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-12-06T05:12:52.438721Z", "last_modified": "2023-12-06T05:12:52.438708Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9123/?format=api", "id": 9123, "code": "Tong_N", "parameter": "Tong_N", "unit": "-", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-12-06T05:13:22.374592Z", "last_modified": "2023-12-06T05:13:22.374563Z" } ] }{ "count": 8132, "next": "