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=12
https://demo.lizard.net/api/v4/observationtypes/?format=api&page=13", "previous": "https://demo.lizard.net/api/v4/observationtypes/?format=api&page=11", "results": [ { "url": "https://demo.lizard.net/api/v4/observationtypes/388/?format=api", "id": 388, "code": "DRUK (bar) OW", "parameter": "Druk", "unit": "bar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:52.337839Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/389/?format=api", "id": 389, "code": "DRUK (bar) LT", "parameter": "Druk", "unit": "bar", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "LT", "created": "2015-09-11T08:04:52.413666Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/390/?format=api", "id": 390, "code": "WARMTE (coC) OW", "parameter": "WARMTE", "unit": "coC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:52.431572Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/391/?format=api", "id": 391, "code": "T (oC) OW", "parameter": "Temperatuur", "unit": "oC", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "OW", "created": "2015-09-11T08:04:53.409771Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/392/?format=api", "id": 392, "code": "DRUK (ton)", "parameter": "Druk", "unit": "ton", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:54.987322Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/393/?format=api", "id": 393, "code": "DRUK (Pa)", "parameter": "Druk", "unit": "Pa", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:55.546247Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/394/?format=api", "id": 394, "code": "Sp0-100 mHz (graden)", "parameter": "Sp0-100 mHz", "unit": "graden", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:55.718321Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/395/?format=api", "id": 395, "code": "DRUK (B)", "parameter": "Druk", "unit": "B", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:57.030377Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/396/?format=api", "id": 396, "code": "ELTSSNG (mV)", "parameter": "ELTSSNG", "unit": "mV", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:58.867974Z", "last_modified": "2019-06-25T07:26:10.441021Z" }, { "url": "https://demo.lizard.net/api/v4/observationtypes/397/?format=api", "id": 397, "code": "wicorr. 10m (m/s)", "parameter": "wicorr. 10m", "unit": "m/s", "scale": "interval", "description": "", "domain_values": null, "reference_frame": "", "compartment": "", "created": "2015-09-11T08:04:59.771773Z", "last_modified": "2019-06-25T07:26:10.441021Z" } ] }{ "count": 8132, "next": "