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=798
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=799", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=797", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/9014/?format=api", "id": 9014, "code": "TS58", "parameter": "Fe tổng", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.581450Z", "last_modified": "2023-11-22T08:36:48.581434Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9015/?format=api", "id": 9015, "code": "TS65", "parameter": "NaCl", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.595782Z", "last_modified": "2023-11-22T08:36:48.595768Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9016/?format=api", "id": 9016, "code": "TS52", "parameter": "Ca2+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.595677Z", "last_modified": "2023-11-22T08:36:48.595662Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9017/?format=api", "id": 9017, "code": "TS60", "parameter": "Tổng N", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.596765Z", "last_modified": "2023-11-22T08:36:48.596749Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9018/?format=api", "id": 9018, "code": "TS63", "parameter": "Dư lượng thuốc BVTV gốc Lân", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.598254Z", "last_modified": "2023-11-22T08:36:48.598237Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9019/?format=api", "id": 9019, "code": "TS61", "parameter": "Cr", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.612381Z", "last_modified": "2023-11-22T08:36:48.612366Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9020/?format=api", "id": 9020, "code": "TS54", "parameter": "SiO2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.619524Z", "last_modified": "2023-11-22T08:36:48.619509Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9021/?format=api", "id": 9021, "code": "TS62", "parameter": "Dư lượng thuốc BVTV gốc Clo", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.630429Z", "last_modified": "2023-11-22T08:36:48.630412Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9022/?format=api", "id": 9022, "code": "TS67", "parameter": "Độ ồn", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.633408Z", "last_modified": "2023-11-22T08:36:48.633393Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/9023/?format=api", "id": 9023, "code": "TS51", "parameter": "K+", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T08:36:48.633600Z", "last_modified": "2023-11-22T08:36:48.633570Z" } ] }{ "count": 8132, "next": "