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=784
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=785", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=783", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/8874/?format=api", "id": 8874, "code": "Cr", "parameter": "Cr", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.700789Z", "last_modified": "2023-11-22T07:35:11.700771Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8875/?format=api", "id": 8875, "code": "Bụi PM10", "parameter": "Bụi PM10", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.704032Z", "last_modified": "2023-11-22T07:35:11.704017Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8876/?format=api", "id": 8876, "code": "pHKCL", "parameter": "pHKCL", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.707351Z", "last_modified": "2023-11-22T07:35:11.707335Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8877/?format=api", "id": 8877, "code": "NH3", "parameter": "NH3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.709700Z", "last_modified": "2023-11-22T07:35:11.709676Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8878/?format=api", "id": 8878, "code": "Dư lượng thuốc BVTV gốc Lân", "parameter": "Dư lượng thuốc BVTV gốc Lân", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.761498Z", "last_modified": "2023-11-22T07:35:11.761482Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8879/?format=api", "id": 8879, "code": "O3", "parameter": "O3", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:11.764986Z", "last_modified": "2023-11-22T07:35:11.764969Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8880/?format=api", "id": 8880, "code": "Độ ẩm", "parameter": "Độ ẩm", "unit": "", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.122726Z", "last_modified": "2023-11-22T07:35:12.122710Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8881/?format=api", "id": 8881, "code": "Malachite Green", "parameter": "Malachite Green", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.729697Z", "last_modified": "2023-11-22T07:35:12.729682Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8882/?format=api", "id": 8882, "code": "Bức Xạ", "parameter": "Bức Xạ", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.731600Z", "last_modified": "2023-11-22T07:35:12.731590Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/8883/?format=api", "id": 8883, "code": "CL2", "parameter": "CL2", "unit": "mg/l", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2023-11-22T07:35:12.731764Z", "last_modified": "2023-11-22T07:35:12.731749Z" } ] }{ "count": 8132, "next": "