Skip to content

BIO7000 Analysis endpoints

List BIO7000 analyses

GET /7000-analysis — get a list of BIO7000 analyses

Returns a list of BIO7000 analysis.

Parameters

Tip

[__<field_lookup>] is optional. So, for example, label=aaa is a valid query parameter. See Field Lookups for a more detailed explanation.

Parameter Type Required Description
label[__<field_lookup>] string Optional Analysis label that needs to be considered for filter
local_timestamp[__<field_lookup>] string Optional Analysis local timestamp
post_time[__<field_lookup>] string Optional Date and time when the analysis was posted to the server. A 'YYYY-MM-DD' or 'YYYY-MM-DDTHH:MM:SS' formatted datetime string
page integer Optional Together with page_size (defaults to 10), paginates the results. The response type changes when results are paginated (see below)
ordering string Optional Overrides the default order. Accepted values: label, local_timestamp, post_time. Reverse order with a hyphen, e.g. -label

Responses

curl -X GET \
  'https://api.biolanglobal.com/biolan/data/api/7000-analysis?label=myanalysis' \
  -H 'Authorization: Bearer {token}' \
  -H 'accept: application/json'
[
  {
    "id": "278b7483-d00d-4727-9235-01b84c627668",
    "localTimestamp": 945678093,
    "postTime": "2023-06-21T08:34:39.148623Z",
    "biosensorSerial": "B7K22002",
    "biotestCode": "02E2430E7B107",
    "result": 331.0,
    "unit": "mg/L",
    "label": "myanalysis",
    "parameter": "Lactosa",
    "applicationLabel": "Dairy products",
    "rangeType": "500-2500mg/L",
    "sampleId": "90",
    "version": "1.9.3-h"
  }
]
{
  "results": [
    {
      "id": "278b7483-d00d-4727-9235-01b84c627668",
      "localTimestamp": 945678093,
      "postTime": "2023-06-21T08:34:39.148623Z",
      "biosensorSerial": "B7K22002",
      "biotestCode": "02E2430E7B107",
      "result": 331.0,
      "unit": "mg/L",
      "label": "myanalysis",
      "parameter": "Lactosa",
      "applicationLabel": "Dairy products",
      "rangeType": "500-2500mg/L",
      "sampleId": "90",
      "version": "1.9.3-h"
    }
  ],
}

Get BIO7000 analysis by id

GET /7000-analysis/{analysisId} — find BIO7000 analysis by id

Returns a single BIO7000 analysis.

Parameters

Parameter Type Required Description
analysisId string Required Analysis unique identifier

Responses

curl -X GET \
  'https://api.biolanglobal.com/biolan/data/api/7000-analysis/1636633400329333eb795-4aaa-4763-ba6b-40ab979ea2d0' \
  -H 'Authorization: Bearer {token}' \
  -H 'accept: application/json'
{
  "id": "278b7483-d00d-4727-9235-01b84c627668",
  "localTimestamp": 945678093,
  "postTime": "2023-06-21T08:34:39.148623Z",
  "biosensorSerial": "B7K22002",
  "biotestCode": "02E2430E7B107",
  "result": 331.0,
  "unit": "mg/L",
  "label": "myanalysis",
  "parameter": "Lactosa",
  "applicationLabel": "Dairy products",
  "rangeType": "500-2500mg/L",
  "sampleId": "90",
  "version": "1.9.3-h"
}
{"detail": "Not found."}