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=787
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=788", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=786", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8904/?format=api", "id": 8904, "code": "CXHY", "parameter": "CXHY", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.918235Z", "last_modified": "2023-11-22T07:35:12.918217Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8905/?format=api", "id": 8905, "code": "Độ kiềm", "parameter": "Độ kiềm", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.918345Z", "last_modified": "2023-11-22T07:35:12.918328Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8906/?format=api", "id": 8906, "code": "Ồn (dBA)", "parameter": "Ồn (dBA)", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.091228Z", "last_modified": "2023-11-22T07:35:13.091212Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8907/?format=api", "id": 8907, "code": "Thuốc BVTV Photpho hữu cơ", "parameter": "Thuốc BVTV Photpho hữu cơ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.314951Z", "last_modified": "2023-11-22T07:35:13.314935Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8908/?format=api", "id": 8908, "code": "DMK", "parameter": "DMK", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.319882Z", "last_modified": "2023-11-22T07:35:13.319866Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8909/?format=api", "id": 8909, "code": "Mn", "parameter": "Mn", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.326999Z", "last_modified": "2023-11-22T07:35:13.326984Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8910/?format=api", "id": 8910, "code": "Furan", "parameter": "Furan", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.327573Z", "last_modified": "2023-11-22T07:35:13.327556Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8911/?format=api", "id": 8911, "code": "N_NH42", "parameter": "N_NH42", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.331888Z", "last_modified": "2023-11-22T07:35:13.331871Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8912/?format=api", "id": 8912, "code": "Sal", "parameter": "Sal", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.333445Z", "last_modified": "2023-11-22T07:35:13.333430Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8913/?format=api", "id": 8913, "code": "Ồn (dBA)3", "parameter": "Ồn (dBA)3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:13.352312Z", "last_modified": "2023-11-22T07:35:13.352291Z" } ] }{ "count": 8132, "next": "