v1

latestOpenAPI 3.0.32026-07-171140286.6 KB
Api\InspectionsController

api/inspections/lists GET List checklists and its inspections linked to Hive id. The 'inspections' object contains a descending date ordered list of general inspection data. The 'items_by_date' object contains a list of (rows of) inspection items that can be placed (in columns) under the inspections by created_at date (table format). NB: Use 'Accept-Language' Header (default nl_NL) to provide localized category names (anc, name) in items_by_date.

get/api/inspections/lists

Headers

Authorizationstring
Content-Typestring
Acceptstring
Accept-languagestring

Request body

idinteger required

The hive to request inspections from.

Example request

{
  "id": 20
}

Response

checklistsobject[]

Example response

{
  "checklists": [
    {
      "id": 810,
      "type": "beep_v2_copy",
      "name": "Beep v2 - info@beep.nl",
      "description": null,
      "created_at": "2020-01-13 18:30:02",
      "updated_at": "2020-01-13 19:58:47",
      "category_ids": [
        149,
        771,
        963,
        964,
        965,
        966,
        263,
        265,
        270,
        276
      ],
      "required_ids": [],
      "owner": true,
      "researches": []
    }
  ]
}