From 6c9536d7cf0e0c09b7d7158083c9fcbbe19ac866 Mon Sep 17 00:00:00 2001 From: Pim van Gennip Date: Wed, 18 Nov 2020 10:56:34 +0100 Subject: [PATCH] Update ResearchDataController API docs with examples --- .../Controllers/Api/InspectionsController.php | 4 +- .../Api/ResearchDataController.php | 586 +++++++- config/apidoc.php | 6 +- public/docs/collection.json | 2 +- public/docs/index.html | 1261 ++++++++++++----- public/docs/source/.compare.md | 1208 +++++++++++----- public/docs/source/index.md | 1208 +++++++++++----- 7 files changed, 3204 insertions(+), 1071 deletions(-) diff --git a/app/Http/Controllers/Api/InspectionsController.php b/app/Http/Controllers/Api/InspectionsController.php index 1b1d68ac..3b240ecc 100644 --- a/app/Http/Controllers/Api/InspectionsController.php +++ b/app/Http/Controllers/Api/InspectionsController.php @@ -93,7 +93,7 @@ public function lists(Request $request) api/inspections/hive/{hive_id} GET List all 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. @authenticated - @queryParam hive_id required The hive to request inspections from. + @urlParam hive_id required The hive to request inspections from. @response { "inspections": [ { @@ -203,7 +203,7 @@ public function hive(Request $request, $hive_id) api/inspections/{id} GET Show the 'inspection' object. The object reflects only the general inspection data. @authenticated - @queryParam id required The id of the inspection. + @urlParam id required The id of the inspection. **/ public function show(Request $request, $id) { diff --git a/app/Http/Controllers/Api/ResearchDataController.php b/app/Http/Controllers/Api/ResearchDataController.php index f5d1798e..8a6c57b6 100644 --- a/app/Http/Controllers/Api/ResearchDataController.php +++ b/app/Http/Controllers/Api/ResearchDataController.php @@ -40,6 +40,83 @@ private function checkAuthorization(Request $request, $id=null) api/researchdata GET List all available Researches @authenticated + @response [ + { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-11-13 17:08:31", + "name": "B-GOOD", + "url": "https://b-good-project.eu/", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research-b-good", + "institution": "Wageningen University & Research", + "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data", + "start_date": "2019-07-01 00:00:00", + "end_date": "2023-06-30 00:00:00", + "image_id": 1, + "consent": true, + "consent_history": [ + { + "id": 185, + "created_at": "2020-11-12 22:28:09", + "updated_at": "2020-06-12 22:28:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 1, + "created_at": "2020-02-25 03:02:23", + "updated_at": "2020-05-27 03:03:00", + "user_id": 1, + "research_id": 1, + "consent": 0, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 97, + "created_at": "2020-05-14 16:24:41", + "updated_at": "2020-03-14 16:24:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + } + ], + "checklist_names": [ + "1 Winter", + "2 Varroa", + "3 Summer+", + "4 Summer", + "5 Health" + ], + "thumb_url": "/storage/users/1/thumbs/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-02-25 03:01:57", + "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image_url": "/storage/users/1/images/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "thumb_url": "/storage/users/1/thumbs/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research", + "height": 1271, + "width": 1271, + "size_kb": 51, + "date": "2020-02-25 03:01:57", + "hive_id": null, + "category_id": null, + "inspection_id": null + } + } + ] */ public function index(Request $request) { @@ -59,7 +136,116 @@ public function index(Request $request) api/researchdata/{id} GET List one Research by id with list of consent_users @authenticated - @queryParam id required The research ID to request data from. + @urlParam id required The research ID to request data from. + @response { + "research": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-11-18 10:33:23", + "name": "B-GOOD", + "url": "https://b-good-project.eu/", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research-b-good", + "institution": "Wageningen University & Research", + "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data", + "start_date": "2019-07-01 00:00:00", + "end_date": "2023-06-30 00:00:00", + "image_id": 1, + "consent": true, + "consent_history": [ + { + "id": 185, + "created_at": "2020-11-12 22:28:09", + "updated_at": "2020-06-12 22:28:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 1, + "created_at": "2020-02-25 03:02:23", + "updated_at": "2020-05-27 03:03:00", + "user_id": 1, + "research_id": 1, + "consent": 0, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 97, + "created_at": "2020-05-14 16:24:41", + "updated_at": "2020-03-14 16:24:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + } + ], + "checklist_names": [ + "1 Winter", + "2 Varroa", + "3 Summer+", + "4 Summer", + "5 Health" + ], + "thumb_url": "/storage/users/1/thumbs/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-02-25 03:01:57", + "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image_url": "/storage/users/1/images/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "thumb_url": "/storage/users/1/thumbs/research/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research", + "height": 1271, + "width": 1271, + "size_kb": 51, + "date": "2020-02-25 03:01:57", + "hive_id": null, + "category_id": null, + "inspection_id": null + } + }, + "consent_users": [ + { + "id": 1, + "name": "Beep", + "email": "pim@beep.nl", + "created_at": "2017-07-14 03:34:10", + "updated_at": "2020-05-27 03:03:00", + "last_login": "2020-11-18 10:32:16", + "locale": null, + "consent": 0 + }, + { + "id": 2371, + "name": "app@beep.nl", + "email": "app@beep.nl", + "created_at": "2019-10-24 17:15:55", + "updated_at": "2020-02-25 11:46:59", + "last_login": "2020-08-20 18:24:22", + "locale": null, + "consent": 0 + }, + { + "id": 1, + "name": "Beep", + "email": "pim@beep.nl", + "created_at": "2017-07-14 03:34:10", + "updated_at": "2020-06-12 22:28:00", + "last_login": "2020-11-18 10:32:16", + "locale": null, + "consent": 1 + } + ] + } */ public function show(Request $request, $id) { @@ -80,13 +266,399 @@ public function show(Request $request, $id) /** api/researchdata/{id}/user/{user_id}/{item} GET - List all user 'item' data within the consent=1 periods of a specific user within a Research. + List all user 'item' data within the consent=1 periods of a specific user within a Research. The 'item' field indicates the type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). Example: inspectionsResponse: api/researchdata/1/user/1/inspections. @authenticated - @queryParam id required The research ID to request data from. - @queryParam user_id required The user id to request data from. - @queryParam item required The type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). - @bodyParam date_start datetime The date in 'YYYY-MM-DD HH:mm:ss' format (2020-01-01 00:00:00) to request data from (default is beginning of research, or earlier (except inspections and measurements). - @bodyParam date_until datetime The date in 'YYYY-MM-DD HH:mm:ss' format (2020-09-29 23:59:59) to request data until (default is until the end of the user consent, or research end). + @urlParam id required The research ID to request data from. Example: 1 + @urlParam user_id required The user id to request data from. Example: 1 + @urlParam item required The type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). Example: inspections + @bodyParam date_start datetime The date in 'YYYY-MM-DD HH:mm:ss' format (2020-01-01 00:00:00) to request data from (default is beginning of research, or earlier (except inspections and measurements). Example: 2020-01-01 00:00:00 + @bodyParam date_until datetime The date in 'YYYY-MM-DD HH:mm:ss' format (2020-09-29 23:59:59) to request data until (default is until the end of the user consent, or research end). Example: 2020-09-29 23:59:59 + @response [ + { + "id": 35211, + "notes": "test", + "reminder": null, + "reminder_date": null, + "impression": 2, + "attention": 1, + "created_at": "2020-03-26 18:28:00", + "checklist_id": 798, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [] + }, + { + "id": 40162, + "notes": "Input Liebefeld", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:03:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326538, + "value": "0.6", + "inspection_id": 40162, + "category_id": 977, + "val": "0.6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326539, + "value": "4", + "inspection_id": 40162, + "category_id": 978, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326540, + "value": "2", + "inspection_id": 40162, + "category_id": 979, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326541, + "value": "4", + "inspection_id": 40162, + "category_id": 980, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326542, + "value": "3", + "inspection_id": 40162, + "category_id": 981, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326543, + "value": "581", + "inspection_id": 40162, + "category_id": 982, + "val": "581", + "unit": "bzz", + "type": "number_positive" + }, + { + "id": 326544, + "value": "5", + "inspection_id": 40162, + "category_id": 984, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326545, + "value": "1", + "inspection_id": 40162, + "category_id": 985, + "val": "1", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326546, + "value": "4", + "inspection_id": 40162, + "category_id": 987, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326547, + "value": "5", + "inspection_id": 40162, + "category_id": 988, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326548, + "value": "4", + "inspection_id": 40162, + "category_id": 989, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326549, + "value": "2", + "inspection_id": 40162, + "category_id": 990, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326550, + "value": "2", + "inspection_id": 40162, + "category_id": 991, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326551, + "value": "3", + "inspection_id": 40162, + "category_id": 992, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326552, + "value": "3", + "inspection_id": 40162, + "category_id": 993, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326553, + "value": "6", + "inspection_id": 40162, + "category_id": 995, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326554, + "value": "2", + "inspection_id": 40162, + "category_id": 996, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326555, + "value": "2", + "inspection_id": 40162, + "category_id": 997, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326556, + "value": "2", + "inspection_id": 40162, + "category_id": 998, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326557, + "value": "2", + "inspection_id": 40162, + "category_id": 999, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326558, + "value": "2", + "inspection_id": 40162, + "category_id": 1000, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326559, + "value": "2", + "inspection_id": 40162, + "category_id": 1001, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326560, + "value": "8", + "inspection_id": 40162, + "category_id": 1163, + "val": "8", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326561, + "value": "4", + "inspection_id": 40162, + "category_id": 1164, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326562, + "value": "2", + "inspection_id": 40162, + "category_id": 1165, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326563, + "value": "6", + "inspection_id": 40162, + "category_id": 1166, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326564, + "value": "2", + "inspection_id": 40162, + "category_id": 1167, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326565, + "value": "2", + "inspection_id": 40162, + "category_id": 1168, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326566, + "value": "3", + "inspection_id": 40162, + "category_id": 1169, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + } + ] + }, + { + "id": 40163, + "notes": "Brood photograph", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:07:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326567, + "value": "1", + "inspection_id": 40163, + "category_id": 399, + "val": "Ja", + "unit": null, + "type": "boolean" + }, + { + "id": 326568, + "value": "https://assets.beep.nl/users/1/thumbs/inspection/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "inspection_id": 40163, + "category_id": 973, + "val": "https://assets.beep.nl/users/1/thumbs/inspection/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "unit": null, + "type": "image" + } + ] + }, + { + "id": 68477, + "notes": null, + "reminder": null, + "reminder_date": null, + "impression": 3, + "attention": 1, + "created_at": "2020-10-23 12:43:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [] + }, + { + "id": 68478, + "notes": "Hive change", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-10-23 13:12:33", + "checklist_id": null, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [ + { + "id": 522496, + "value": "2", + "inspection_id": 68478, + "category_id": 85, + "val": "2", + "unit": null, + "type": "number_positive" + }, + { + "id": 522497, + "value": "2", + "inspection_id": 68478, + "category_id": 87, + "val": "2", + "unit": null, + "type": "number" + }, + { + "id": 522498, + "value": "10", + "inspection_id": 68478, + "category_id": 89, + "val": "10", + "unit": null, + "type": "number_positive" + } + ] + } + ] */ public function user_data(Request $request, $id, $user_id, $item) { diff --git a/config/apidoc.php b/config/apidoc.php index 5f95247e..67b48d33 100644 --- a/config/apidoc.php +++ b/config/apidoc.php @@ -17,7 +17,7 @@ * The base URL to be used in examples and the Postman collection. * By default, this will be the value of config('app.url'). */ - 'base_url' => 'https://test.beep.nl/', + 'base_url' => 'https://api.beep.nl/', /* * Generate a Postman collection in addition to HTML docs. @@ -31,12 +31,12 @@ /* * The name for the exported Postman collection. Default: config('app.name')." API" */ - 'name' => null, + 'name' => 'BEEP', /* * The description for the exported Postman collection. */ - 'description' => null, + 'description' => 'BEEP API', ], /* diff --git a/public/docs/collection.json b/public/docs/collection.json index 0d000da2..19735c0d 100644 --- a/public/docs/collection.json +++ b/public/docs/collection.json @@ -1 +1 @@ -{"variables":[],"info":{"name":"BEEP API","_postman_id":"e725ed0a-c87b-4803-8059-42a86c3ad203","description":"","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"},"item":[{"name":"Api\\CategoryController","description":"","item":[{"name":"api\/categories\nDisplay a listing of the inspection categories.","request":{"url":"https:\/\/test.beep.nl\/api\/categories","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/categories\/{id}\nDisplay the specified category.","request":{"url":"https:\/\/test.beep.nl\/api\/categories\/{category}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ChecklistController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/checklists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/checklists","request":{"url":"https:\/\/test.beep.nl\/api\/checklists","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/test.beep.nl\/api\/checklists\/{checklist}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\DeviceController","description":"","item":[{"name":"api\/devices\/multiple POST\nStore\/update multiple Devices in an array of Device objects","request":{"url":"https:\/\/test.beep.nl\/api\/devices\/multiple","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":15,"type":"text","enabled":true},{"key":"key","value":"ipsum","type":"text","enabled":true},{"key":"hardware_id","value":"soluta","type":"text","enabled":true},{"key":"name","value":"eaque","type":"text","enabled":true},{"key":"hive_id","value":16,"type":"text","enabled":true},{"key":"type","value":"pariatur","type":"text","enabled":true},{"key":"last_message_received","value":"corrupti","type":"text","enabled":true},{"key":"firmware_version","value":"voluptatem","type":"text","enabled":true},{"key":"hardware_version","value":"nihil","type":"text","enabled":true},{"key":"boot_count","value":5,"type":"text","enabled":true},{"key":"measurement_interval_min","value":10277.20748579,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":23.812,"type":"text","enabled":true},{"key":"ble_pin","value":"explicabo","type":"text","enabled":true},{"key":"battery_voltage","value":469,"type":"text","enabled":true},{"key":"next_downlink_message","value":"atque","type":"text","enabled":true},{"key":"last_downlink_result","value":"animi","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices\/ttn\/{dev_id} GET\nGet a TTN Device by Device ID (BEEP hardware_id)","request":{"url":"https:\/\/test.beep.nl\/api\/devices\/ttn\/{dev_id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices\/ttn\/{dev_id} POST\nCreate an OTAA LoRaWAN Device in the BEEP TTN Console by dev_id (dev_id (= BEEP hardware_id) a unique identifier for the device. It can contain lowercase letters, numbers, - and _) and this payload:\n{\n\"lorawan_device\": {\n\"dev_eui\": \"<8 byte identifier for the device>\",\n\"app_key\": \"<16 byte static key that is known by the device and the application. It is used for negotiating session keys (OTAA)>\"\n}\n}","request":{"url":"https:\/\/test.beep.nl\/api\/devices\/ttn\/{dev_id}","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices GET\nList all user Devices","request":{"url":"https:\/\/test.beep.nl\/api\/devices","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"hardware_id","value":"voluptas","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices POST\nCreate or Update a Device","request":{"url":"https:\/\/test.beep.nl\/api\/devices","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":20,"type":"text","enabled":true},{"key":"key","value":"in","type":"text","enabled":true},{"key":"hardware_id","value":"debitis","type":"text","enabled":true},{"key":"name","value":"nihil","type":"text","enabled":true},{"key":"hive_id","value":3,"type":"text","enabled":true},{"key":"type","value":"dignissimos","type":"text","enabled":true},{"key":"last_message_received","value":"mollitia","type":"text","enabled":true},{"key":"firmware_version","value":"incidunt","type":"text","enabled":true},{"key":"hardware_version","value":"voluptatibus","type":"text","enabled":true},{"key":"boot_count","value":10,"type":"text","enabled":true},{"key":"measurement_interval_min","value":390,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":1.4775683,"type":"text","enabled":true},{"key":"ble_pin","value":"sed","type":"text","enabled":true},{"key":"battery_voltage","value":43592823.35,"type":"text","enabled":true},{"key":"next_downlink_message","value":"ab","type":"text","enabled":true},{"key":"last_downlink_result","value":"tenetur","type":"text","enabled":true},{"key":"create_ttn_device","value":false,"type":"text","enabled":true},{"key":"app_key","value":"autem","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices\/{id} GET\nList one Device by id","request":{"url":"https:\/\/test.beep.nl\/api\/devices\/{device}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices PUT\/PATCH\nUpdate an existing Device","request":{"url":"https:\/\/test.beep.nl\/api\/devices\/{device}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":7,"type":"text","enabled":true},{"key":"key","value":"eligendi","type":"text","enabled":true},{"key":"hardware_id","value":"repellendus","type":"text","enabled":true},{"key":"name","value":"et","type":"text","enabled":true},{"key":"hive_id","value":3,"type":"text","enabled":true},{"key":"type","value":"reiciendis","type":"text","enabled":true},{"key":"delete","value":false,"type":"text","enabled":true},{"key":"last_message_received","value":"aliquam","type":"text","enabled":true},{"key":"firmware_version","value":"necessitatibus","type":"text","enabled":true},{"key":"hardware_version","value":"aut","type":"text","enabled":true},{"key":"boot_count","value":9,"type":"text","enabled":true},{"key":"measurement_interval_min","value":30.27043,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":25.64,"type":"text","enabled":true},{"key":"ble_pin","value":"quisquam","type":"text","enabled":true},{"key":"battery_voltage","value":198.9654075,"type":"text","enabled":true},{"key":"next_downlink_message","value":"consequatur","type":"text","enabled":true},{"key":"last_downlink_result","value":"molestiae","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\ExportController","description":"","item":[{"name":"https:\/\/test.beep.nl\/api\/export","request":{"url":"https:\/\/test.beep.nl\/api\/export","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/export\/csv","request":{"url":"https:\/\/test.beep.nl\/api\/export\/csv","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\GroupController","description":"","item":[{"name":"https:\/\/test.beep.nl\/api\/groups\/checktoken","request":{"url":"https:\/\/test.beep.nl\/api\/groups\/checktoken","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups","request":{"url":"https:\/\/test.beep.nl\/api\/groups","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups","request":{"url":"https:\/\/test.beep.nl\/api\/groups","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/test.beep.nl\/api\/groups\/{group}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/test.beep.nl\/api\/groups\/{group}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/test.beep.nl\/api\/groups\/{group}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/groups\/detach\/{id}","request":{"url":"https:\/\/test.beep.nl\/api\/groups\/detach\/{id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\HiveController","description":"","item":[{"name":"api\/hives GET\nDisplay a listing of user hives.","request":{"url":"https:\/\/test.beep.nl\/api\/hives","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives POST\nStore a newly created Hive in storage for the authenticated user.","request":{"url":"https:\/\/test.beep.nl\/api\/hives","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} GET\nDisplay the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/hives\/{hive}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} PATCH\nUpdate the specified user Hive in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/hives\/{hive}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} DELETE\nRemove the specified user Hive from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/hives\/{hive}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ImageController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/images","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/images","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/images\/{image}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/images\/{image}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/images","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\InspectionsController","description":"","item":[{"name":"api\/inspections GET\nShow the 'inspections' list with objects reflecting only the general inspection data.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections\/lists GET\nList 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.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections\/lists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":9,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/inspections\/{id} GET\nShow the 'inspection' object. The object reflects only the general inspection data.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections\/{id}?id=pariatur","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections\/hive\/{hive_id} GET\nList all 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.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections\/hive\/{hive_id}?hive_id=dolores","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections POST\nRegister a new hive inspection the 'inspection' object. The object reflects only the general inspection data.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections\/store","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"date","value":"2020-05-18 16:16","type":"text","enabled":true},{"key":"items","value":"{\"547\":0,\"595\":1,\"845\":\"814\"}","type":"text","enabled":true},{"key":"hive_id","value":42,"type":"text","enabled":true},{"key":"impression","value":-1,"type":"text","enabled":true},{"key":"attention","value":1,"type":"text","enabled":true},{"key":"reminder","value":"This is an inspection reminder","type":"text","enabled":true},{"key":"reminder_date","value":"2020-05-27 16:16","type":"text","enabled":true},{"key":"notes","value":"This is an inspection note","type":"text","enabled":true},{"key":"checklist_id","value":829,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/inspections\/{id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\LocationController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/locations","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/locations","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/locations\/{location}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/locations\/{location}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/locations\/{location}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\MeasurementController","description":"","item":[{"name":"api\/sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from API, or TTN. In case of using api\/unsecure_sensors, this is used for legacy measurement devices that do not have the means to encrypt HTTPS cypher","request":{"url":"https:\/\/test.beep.nl\/api\/sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"dignissimos","type":"text","enabled":true},{"key":"data","value":[],"type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/lora_sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from TTN or KPN (Simpoint)\nWhen Simpoint payload is supplied, the LoRa HEX to key\/value pairs decoding is done within function $this->parse_ttn_payload()\nWhen TTN payload is supplied, the TTN HTTP integration decoder\/converter is assumed to have already converted the payload from LoRa HEX to key\/value conversion","request":{"url":"https:\/\/test.beep.nl\/api\/lora_sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"facilis","type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true},{"key":"DevEUI_uplink","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from API, or TTN. In case of using api\/unsecure_sensors, this is used for legacy measurement devices that do not have the means to encrypt HTTPS cypher","request":{"url":"https:\/\/test.beep.nl\/api\/unsecure_sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"vero","type":"text","enabled":true},{"key":"data","value":[],"type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/measurements GET\nRequest all sensor measurements from a certain interval (hour, day, week, month, year) and index (0=until now, 1=previous interval, etc.)","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/measurements","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"deserunt","type":"text","enabled":true},{"key":"id","value":5,"type":"text","enabled":true},{"key":"hive_id","value":4,"type":"text","enabled":true},{"key":"names","value":"nobis","type":"text","enabled":true},{"key":"interval","value":"blanditiis","type":"text","enabled":true},{"key":"index","value":16,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/lastvalues GET\nRequest last measurement values of all sensor measurements from a sensor (Device)","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/lastvalues","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"consectetur","type":"text","enabled":true},{"key":"id","value":5,"type":"text","enabled":true},{"key":"hive_id","value":2,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/lastweight GET\nRequest last weight related measurement values from a sensor (Device), used by legacy webapp to show calibration data: ['w_fl', 'w_fr', 'w_bl', 'w_br', 'w_v', 'weight_kg', 'weight_kg_corrected', 'calibrating_weight', 'w_v_offset', 'w_v_kg_per_val', 'w_fl_offset', 'w_fr_offset', 'w_bl_offset', 'w_br_offset']","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/lastweight","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"numquam","type":"text","enabled":true},{"key":"id","value":3,"type":"text","enabled":true},{"key":"hive_id","value":19,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/calibrateweight\nLegacy method, used by legacy webapp to store weight calibration value e.g.[w_v_kg_per_val] in Influx database, to lookup and calculate [weight_kg] at incoming measurement value storage","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/calibrateweight","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"At the next measurement coming in, calibrate each weight sensor with it's part of a given weight.\nBecause the measurements can come in only each hour\/ 3hrs, set a value to trigger the calculation on next measurement\n\n1. If $next_measurement == true: save 'calibrating' = true in Influx with the sensor key\n2. If $next_measurement == false: save 'calibrating' = false in Influx with the sensor key and...\n3. Get the last measured weight values for this sensor key,\n Divide the given weight (in kg) with the amount of sensor values > 1.0 (assuming the weight is evenly distributed)\n Calculate the multiplier per sensor by dividing the multiplier = weight_part \/ (value - offset)\n Save the multiplier as $device_name.'_kg_per_val' in Influx","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/sensors\/offsetweight","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/offsetweight","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/sensors\/measurement_types_available","request":{"url":"https:\/\/test.beep.nl\/api\/sensors\/measurement_types_available","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/lora_sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from TTN or KPN (Simpoint)\nWhen Simpoint payload is supplied, the LoRa HEX to key\/value pairs decoding is done within function $this->parse_ttn_payload()\nWhen TTN payload is supplied, the TTN HTTP integration decoder\/converter is assumed to have already converted the payload from LoRa HEX to key\/value conversion","request":{"url":"https:\/\/test.beep.nl\/api\/lora_sensors_auth","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"eum","type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true},{"key":"DevEUI_uplink","value":[],"type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\ProductionController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/productions","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/productions","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/productions\/{production}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/productions\/{production}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/productions\/{production}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\QueenController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/queens","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/queens","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/queens\/{queen}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/queens\/{queen}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/queens\/{queen}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ResearchController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/research","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/research\/{id}\/add_consent","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/research\/{id}\/remove_consent","request":{"url":"https:\/\/test.beep.nl\/api\/research\/{id}\/remove_consent","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/research\/{id}\/edit\/{consent_id}","request":{"url":"https:\/\/test.beep.nl\/api\/research\/{id}\/edit\/{consent_id}","method":"PATCH","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/research\/{id}\/delete\/{consent_id}","request":{"url":"https:\/\/test.beep.nl\/api\/research\/{id}\/delete\/{consent_id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ResearchDataController","description":"","item":[{"name":"api\/researchdata GET\nList all available Researches","request":{"url":"https:\/\/test.beep.nl\/api\/researchdata","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/researchdata\/{id} GET\nList one Research by id with list of consent_users","request":{"url":"https:\/\/test.beep.nl\/api\/researchdata\/{id}?id=consequatur","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/researchdata\/{id}\/user\/{user_id}\/{item} GET\nList all user 'item' data within the consent=1 periods of a specific user within a Research.","request":{"url":"https:\/\/test.beep.nl\/api\/researchdata\/{id}\/user\/{user_id}\/{item}?id=voluptates&user_id=porro&item=amet","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"date_start","value":"suscipit","type":"text","enabled":true},{"key":"date_until","value":"sed","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\SensorDefinitionController","description":"","item":[{"name":"api\/sensordefinition GET\nDisplay a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/sensordefinition","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":12,"type":"text","enabled":true},{"key":"device_hardware_id","value":"maiores","type":"text","enabled":true},{"key":"input_measurement_abbreviation","value":"incidunt","type":"text","enabled":true},{"key":"limit","value":20,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensordefinition POST\nStore a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/sensordefinition","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"iure","type":"text","enabled":true},{"key":"inside","value":false,"type":"text","enabled":true},{"key":"offset","value":806571.656330946,"type":"text","enabled":true},{"key":"multiplier","value":242.72931977,"type":"text","enabled":true},{"key":"input_measurement_id","value":5,"type":"text","enabled":true},{"key":"input_measurement_abbreviation","value":"w_v","type":"text","enabled":true},{"key":"output_measurement_id","value":6,"type":"text","enabled":true},{"key":"output_measurement_abbreviation","value":"t_i","type":"text","enabled":true},{"key":"device_id","value":4,"type":"text","enabled":true},{"key":"device_hardware_id","value":"eos","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensordefinition\/{id} GET\nDisplay the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/sensordefinition PATCH\nUpdate the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"api\/sensordefinition DELETE\nRemove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\SettingController","description":"","item":[{"name":"https:\/\/test.beep.nl\/api\/settings","request":{"url":"https:\/\/test.beep.nl\/api\/settings","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/settings","request":{"url":"https:\/\/test.beep.nl\/api\/settings","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\TaxonomyController","description":"","item":[{"name":"https:\/\/test.beep.nl\/api\/taxonomy\/lists","request":{"url":"https:\/\/test.beep.nl\/api\/taxonomy\/lists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/test.beep.nl\/api\/taxonomy\/taxonomy","request":{"url":"https:\/\/test.beep.nl\/api\/taxonomy\/taxonomy","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\UserController","description":"","item":[{"name":"api\/register\nRegisters a new user and sends an e-mail verification request on succesful save","request":{"url":"https:\/\/test.beep.nl\/api\/register","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"policy_accepted","value":"beep_terms_2018_05_25_avg_v1","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/login\nLogin via login form","request":{"url":"https:\/\/test.beep.nl\/api\/login","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/user\/reminder\nSend password reset link\nresponses: invalid_user, reminder_sent, invalid_password, invalid_token, password_reset","request":{"url":"https:\/\/test.beep.nl\/api\/user\/reminder","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/user\/reset\nReset the user passowrd with a reset link\nresponses: INVALID_USER, RESET_LINK_SENT, INVALID_PASSWORD, INVALID_TOKEN, PASSWORD_RESET","request":{"url":"https:\/\/test.beep.nl\/api\/user\/reset","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"password_confirm","value":"testtest","type":"text","enabled":true},{"key":"token","value":"z8iQafmgP1","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/authenticate\nAuthorize a user and login with an api_token. Used for persistent login in webapp.","request":{"url":"https:\/\/test.beep.nl\/api\/authenticate","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"Header parameter with Bearer [api_token] from the user object. Example: Bearer 1snu2aRRiwQNl2Tul567hLF0XpKuZO8hqkgXU4GvjzZ3f3pOCiDPFbBDea7W","response":[]}},{"name":"api\/user DELETE\nDestroy the logged in user and all its data in the database","request":{"url":"https:\/\/test.beep.nl\/api\/user","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/user PATCH\nEdit the user details","request":{"url":"https:\/\/test.beep.nl\/api\/user","method":"PATCH","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"password_confirm","value":"testtest","type":"text","enabled":true},{"key":"policy_accepted","value":"beep_terms_2018_05_25_avg_v1","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\VerificationController","description":"","item":[{"name":"Show the email verification notice.","request":{"url":"https:\/\/test.beep.nl\/api\/email\/verify","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Mark the authenticated user's email address as verified.","request":{"url":"https:\/\/test.beep.nl\/api\/email\/verify\/{id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Resend the email verification notification.","request":{"url":"https:\/\/test.beep.nl\/api\/email\/resend","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"general","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/weather","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display a listing of the resource.","request":{"url":"https:\/\/test.beep.nl\/api\/samplecode","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/samplecode","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/test.beep.nl\/api\/samplecode\/{samplecode}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/test.beep.nl\/api\/samplecode\/{samplecode}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/test.beep.nl\/api\/samplecode","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]}]} \ No newline at end of file +{"variables":[],"info":{"name":"BEEP","_postman_id":"d7b9cf44-faee-4a55-96f3-c30db8008687","description":"BEEP API","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"},"item":[{"name":"Api\\CategoryController","description":"","item":[{"name":"api\/categories\nDisplay a listing of the inspection categories.","request":{"url":"https:\/\/api.beep.nl\/api\/categories","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/categories\/{id}\nDisplay the specified category.","request":{"url":"https:\/\/api.beep.nl\/api\/categories\/{category}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ChecklistController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/checklists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/checklists","request":{"url":"https:\/\/api.beep.nl\/api\/checklists","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","request":{"url":"https:\/\/api.beep.nl\/api\/checklists\/{checklist}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\DeviceController","description":"","item":[{"name":"api\/devices\/multiple POST\nStore\/update multiple Devices in an array of Device objects","request":{"url":"https:\/\/api.beep.nl\/api\/devices\/multiple","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":1,"type":"text","enabled":true},{"key":"key","value":"necessitatibus","type":"text","enabled":true},{"key":"hardware_id","value":"sit","type":"text","enabled":true},{"key":"name","value":"alias","type":"text","enabled":true},{"key":"hive_id","value":14,"type":"text","enabled":true},{"key":"type","value":"doloribus","type":"text","enabled":true},{"key":"last_message_received","value":"incidunt","type":"text","enabled":true},{"key":"firmware_version","value":"quis","type":"text","enabled":true},{"key":"hardware_version","value":"ex","type":"text","enabled":true},{"key":"boot_count","value":8,"type":"text","enabled":true},{"key":"measurement_interval_min","value":0,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":6274348.332087,"type":"text","enabled":true},{"key":"ble_pin","value":"aut","type":"text","enabled":true},{"key":"battery_voltage","value":221881238,"type":"text","enabled":true},{"key":"next_downlink_message","value":"dolore","type":"text","enabled":true},{"key":"last_downlink_result","value":"exercitationem","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices\/ttn\/{dev_id} GET\nGet a TTN Device by Device ID (BEEP hardware_id)","request":{"url":"https:\/\/api.beep.nl\/api\/devices\/ttn\/{dev_id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices\/ttn\/{dev_id} POST\nCreate an OTAA LoRaWAN Device in the BEEP TTN Console by dev_id (dev_id (= BEEP hardware_id) a unique identifier for the device. It can contain lowercase letters, numbers, - and _) and this payload:\n{\n\"lorawan_device\": {\n\"dev_eui\": \"<8 byte identifier for the device>\",\n\"app_key\": \"<16 byte static key that is known by the device and the application. It is used for negotiating session keys (OTAA)>\"\n}\n}","request":{"url":"https:\/\/api.beep.nl\/api\/devices\/ttn\/{dev_id}","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices GET\nList all user Devices","request":{"url":"https:\/\/api.beep.nl\/api\/devices","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"hardware_id","value":"similique","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices POST\nCreate or Update a Device","request":{"url":"https:\/\/api.beep.nl\/api\/devices","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":16,"type":"text","enabled":true},{"key":"key","value":"ab","type":"text","enabled":true},{"key":"hardware_id","value":"laudantium","type":"text","enabled":true},{"key":"name","value":"nostrum","type":"text","enabled":true},{"key":"hive_id","value":4,"type":"text","enabled":true},{"key":"type","value":"eum","type":"text","enabled":true},{"key":"last_message_received","value":"modi","type":"text","enabled":true},{"key":"firmware_version","value":"illum","type":"text","enabled":true},{"key":"hardware_version","value":"sed","type":"text","enabled":true},{"key":"boot_count","value":16,"type":"text","enabled":true},{"key":"measurement_interval_min","value":218.343005352,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":13228.3832504,"type":"text","enabled":true},{"key":"ble_pin","value":"minus","type":"text","enabled":true},{"key":"battery_voltage","value":306.848,"type":"text","enabled":true},{"key":"next_downlink_message","value":"eveniet","type":"text","enabled":true},{"key":"last_downlink_result","value":"soluta","type":"text","enabled":true},{"key":"create_ttn_device","value":true,"type":"text","enabled":true},{"key":"app_key","value":"numquam","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/devices\/{id} GET\nList one Device by id","request":{"url":"https:\/\/api.beep.nl\/api\/devices\/{device}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/devices PUT\/PATCH\nUpdate an existing Device","request":{"url":"https:\/\/api.beep.nl\/api\/devices\/{device}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":20,"type":"text","enabled":true},{"key":"key","value":"praesentium","type":"text","enabled":true},{"key":"hardware_id","value":"eveniet","type":"text","enabled":true},{"key":"name","value":"quia","type":"text","enabled":true},{"key":"hive_id","value":7,"type":"text","enabled":true},{"key":"type","value":"laudantium","type":"text","enabled":true},{"key":"delete","value":true,"type":"text","enabled":true},{"key":"last_message_received","value":"quibusdam","type":"text","enabled":true},{"key":"firmware_version","value":"ipsum","type":"text","enabled":true},{"key":"hardware_version","value":"nostrum","type":"text","enabled":true},{"key":"boot_count","value":15,"type":"text","enabled":true},{"key":"measurement_interval_min","value":3998.31519,"type":"text","enabled":true},{"key":"measurement_transmission_ratio","value":35.514,"type":"text","enabled":true},{"key":"ble_pin","value":"consequatur","type":"text","enabled":true},{"key":"battery_voltage","value":591377700,"type":"text","enabled":true},{"key":"next_downlink_message","value":"error","type":"text","enabled":true},{"key":"last_downlink_result","value":"ipsum","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\ExportController","description":"","item":[{"name":"https:\/\/api.beep.nl\/api\/export","request":{"url":"https:\/\/api.beep.nl\/api\/export","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/export\/csv","request":{"url":"https:\/\/api.beep.nl\/api\/export\/csv","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\GroupController","description":"","item":[{"name":"https:\/\/api.beep.nl\/api\/groups\/checktoken","request":{"url":"https:\/\/api.beep.nl\/api\/groups\/checktoken","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups","request":{"url":"https:\/\/api.beep.nl\/api\/groups","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups","request":{"url":"https:\/\/api.beep.nl\/api\/groups","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/api.beep.nl\/api\/groups\/{group}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/api.beep.nl\/api\/groups\/{group}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups\/{group}","request":{"url":"https:\/\/api.beep.nl\/api\/groups\/{group}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/groups\/detach\/{id}","request":{"url":"https:\/\/api.beep.nl\/api\/groups\/detach\/{id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\HiveController","description":"","item":[{"name":"api\/hives GET\nDisplay a listing of user hives.","request":{"url":"https:\/\/api.beep.nl\/api\/hives","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives POST\nStore a newly created Hive in storage for the authenticated user.","request":{"url":"https:\/\/api.beep.nl\/api\/hives","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} GET\nDisplay the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/hives\/{hive}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} PATCH\nUpdate the specified user Hive in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/hives\/{hive}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"api\/hives\/{id} DELETE\nRemove the specified user Hive from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/hives\/{hive}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ImageController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/images","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/images","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/images\/{image}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/images\/{image}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/images","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\InspectionsController","description":"","item":[{"name":"api\/inspections GET\nShow the 'inspections' list with objects reflecting only the general inspection data.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections\/lists GET\nList 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.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections\/lists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"id","value":15,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/inspections\/{id} GET\nShow the 'inspection' object. The object reflects only the general inspection data.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections\/{id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections\/hive\/{hive_id} GET\nList all 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.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections\/hive\/{hive_id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/inspections POST\nRegister a new hive inspection the 'inspection' object. The object reflects only the general inspection data.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections\/store","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"date","value":"2020-05-18 16:16","type":"text","enabled":true},{"key":"items","value":"{\"547\":0,\"595\":1,\"845\":\"814\"}","type":"text","enabled":true},{"key":"hive_id","value":42,"type":"text","enabled":true},{"key":"impression","value":-1,"type":"text","enabled":true},{"key":"attention","value":1,"type":"text","enabled":true},{"key":"reminder","value":"This is an inspection reminder","type":"text","enabled":true},{"key":"reminder_date","value":"2020-05-27 16:16","type":"text","enabled":true},{"key":"notes","value":"This is an inspection note","type":"text","enabled":true},{"key":"checklist_id","value":829,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/inspections\/{id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\LocationController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/locations","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/locations","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/locations\/{location}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/locations\/{location}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/locations\/{location}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\MeasurementController","description":"","item":[{"name":"api\/sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from API, or TTN. In case of using api\/unsecure_sensors, this is used for legacy measurement devices that do not have the means to encrypt HTTPS cypher","request":{"url":"https:\/\/api.beep.nl\/api\/sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"dicta","type":"text","enabled":true},{"key":"data","value":[],"type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/lora_sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from TTN or KPN (Simpoint)\nWhen Simpoint payload is supplied, the LoRa HEX to key\/value pairs decoding is done within function $this->parse_ttn_payload()\nWhen TTN payload is supplied, the TTN HTTP integration decoder\/converter is assumed to have already converted the payload from LoRa HEX to key\/value conversion","request":{"url":"https:\/\/api.beep.nl\/api\/lora_sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"recusandae","type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true},{"key":"DevEUI_uplink","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from API, or TTN. In case of using api\/unsecure_sensors, this is used for legacy measurement devices that do not have the means to encrypt HTTPS cypher","request":{"url":"https:\/\/api.beep.nl\/api\/unsecure_sensors","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"id","type":"text","enabled":true},{"key":"data","value":[],"type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/measurements GET\nRequest all sensor measurements from a certain interval (hour, day, week, month, year) and index (0=until now, 1=previous interval, etc.)","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/measurements","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"deserunt","type":"text","enabled":true},{"key":"id","value":1,"type":"text","enabled":true},{"key":"hive_id","value":3,"type":"text","enabled":true},{"key":"names","value":"veritatis","type":"text","enabled":true},{"key":"interval","value":"quae","type":"text","enabled":true},{"key":"index","value":11,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/lastvalues GET\nRequest last measurement values of all sensor measurements from a sensor (Device)","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/lastvalues","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"magni","type":"text","enabled":true},{"key":"id","value":20,"type":"text","enabled":true},{"key":"hive_id","value":9,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/lastweight GET\nRequest last weight related measurement values from a sensor (Device), used by legacy webapp to show calibration data: ['w_fl', 'w_fr', 'w_bl', 'w_br', 'w_v', 'weight_kg', 'weight_kg_corrected', 'calibrating_weight', 'w_v_offset', 'w_v_kg_per_val', 'w_fl_offset', 'w_fr_offset', 'w_bl_offset', 'w_br_offset']","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/lastweight","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"molestiae","type":"text","enabled":true},{"key":"id","value":6,"type":"text","enabled":true},{"key":"hive_id","value":7,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensors\/calibrateweight\nLegacy method, used by legacy webapp to store weight calibration value e.g.[w_v_kg_per_val] in Influx database, to lookup and calculate [weight_kg] at incoming measurement value storage","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/calibrateweight","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"At the next measurement coming in, calibrate each weight sensor with it's part of a given weight.\nBecause the measurements can come in only each hour\/ 3hrs, set a value to trigger the calculation on next measurement\n\n1. If $next_measurement == true: save 'calibrating' = true in Influx with the sensor key\n2. If $next_measurement == false: save 'calibrating' = false in Influx with the sensor key and...\n3. Get the last measured weight values for this sensor key,\n Divide the given weight (in kg) with the amount of sensor values > 1.0 (assuming the weight is evenly distributed)\n Calculate the multiplier per sensor by dividing the multiplier = weight_part \/ (value - offset)\n Save the multiplier as $device_name.'_kg_per_val' in Influx","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/sensors\/offsetweight","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/offsetweight","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/sensors\/measurement_types_available","request":{"url":"https:\/\/api.beep.nl\/api\/sensors\/measurement_types_available","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/lora_sensors POST\nStore sensor measurement data (see BEEP sensor data API definition) from TTN or KPN (Simpoint)\nWhen Simpoint payload is supplied, the LoRa HEX to key\/value pairs decoding is done within function $this->parse_ttn_payload()\nWhen TTN payload is supplied, the TTN HTTP integration decoder\/converter is assumed to have already converted the payload from LoRa HEX to key\/value conversion","request":{"url":"https:\/\/api.beep.nl\/api\/lora_sensors_auth","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"key","value":"totam","type":"text","enabled":true},{"key":"payload_fields","value":[],"type":"text","enabled":true},{"key":"DevEUI_uplink","value":[],"type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\ProductionController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/productions","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/productions","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/productions\/{production}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/productions\/{production}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/productions\/{production}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\QueenController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/queens","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/queens","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/queens\/{queen}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/queens\/{queen}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/queens\/{queen}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ResearchController","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/research","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/research\/{id}\/add_consent","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/research\/{id}\/remove_consent","request":{"url":"https:\/\/api.beep.nl\/api\/research\/{id}\/remove_consent","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/research\/{id}\/edit\/{consent_id}","request":{"url":"https:\/\/api.beep.nl\/api\/research\/{id}\/edit\/{consent_id}","method":"PATCH","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/research\/{id}\/delete\/{consent_id}","request":{"url":"https:\/\/api.beep.nl\/api\/research\/{id}\/delete\/{consent_id}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\ResearchDataController","description":"","item":[{"name":"api\/researchdata GET\nList all available Researches","request":{"url":"https:\/\/api.beep.nl\/api\/researchdata","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/researchdata\/{id} GET\nList one Research by id with list of consent_users","request":{"url":"https:\/\/api.beep.nl\/api\/researchdata\/{id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/researchdata\/{id}\/user\/{user_id}\/{item} GET\nList all user 'item' data within the consent=1 periods of a specific user within a Research. The 'item' field indicates the type of user data (apiaries\/hives\/devices\/inspections\/measurements) to request within the research (which the user gave consent for to use). Example: inspectionsResponse: api\/researchdata\/1\/user\/1\/inspections.","request":{"url":"https:\/\/api.beep.nl\/api\/researchdata\/{id}\/user\/{user_id}\/{item}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"date_start","value":"2020-01-01 00:00:00","type":"text","enabled":true},{"key":"date_until","value":"2020-09-29 23:59:59","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\SensorDefinitionController","description":"","item":[{"name":"api\/sensordefinition GET\nDisplay a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/sensordefinition","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":8,"type":"text","enabled":true},{"key":"device_hardware_id","value":"hic","type":"text","enabled":true},{"key":"input_measurement_abbreviation","value":"non","type":"text","enabled":true},{"key":"limit","value":14,"type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensordefinition POST\nStore a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/sensordefinition","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"aut","type":"text","enabled":true},{"key":"inside","value":false,"type":"text","enabled":true},{"key":"offset","value":2023.3,"type":"text","enabled":true},{"key":"multiplier","value":28.832819,"type":"text","enabled":true},{"key":"input_measurement_id","value":5,"type":"text","enabled":true},{"key":"input_measurement_abbreviation","value":"w_v","type":"text","enabled":true},{"key":"output_measurement_id","value":6,"type":"text","enabled":true},{"key":"output_measurement_abbreviation","value":"t_i","type":"text","enabled":true},{"key":"device_id","value":6,"type":"text","enabled":true},{"key":"device_hardware_id","value":"nihil","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/sensordefinition\/{id} GET\nDisplay the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/sensordefinition PATCH\nUpdate the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"api\/sensordefinition DELETE\nRemove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/sensordefinition\/{sensordefinition}","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\SettingController","description":"","item":[{"name":"https:\/\/api.beep.nl\/api\/settings","request":{"url":"https:\/\/api.beep.nl\/api\/settings","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/settings","request":{"url":"https:\/\/api.beep.nl\/api\/settings","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\TaxonomyController","description":"","item":[{"name":"https:\/\/api.beep.nl\/api\/taxonomy\/lists","request":{"url":"https:\/\/api.beep.nl\/api\/taxonomy\/lists","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"https:\/\/api.beep.nl\/api\/taxonomy\/taxonomy","request":{"url":"https:\/\/api.beep.nl\/api\/taxonomy\/taxonomy","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"Api\\UserController","description":"","item":[{"name":"api\/register\nRegisters a new user and sends an e-mail verification request on succesful save","request":{"url":"https:\/\/api.beep.nl\/api\/register","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"policy_accepted","value":"beep_terms_2018_05_25_avg_v1","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/login\nLogin via login form","request":{"url":"https:\/\/api.beep.nl\/api\/login","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/user\/reminder\nSend password reset link\nresponses: invalid_user, reminder_sent, invalid_password, invalid_token, password_reset","request":{"url":"https:\/\/api.beep.nl\/api\/user\/reminder","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/user\/reset\nReset the user passowrd with a reset link\nresponses: INVALID_USER, RESET_LINK_SENT, INVALID_PASSWORD, INVALID_TOKEN, PASSWORD_RESET","request":{"url":"https:\/\/api.beep.nl\/api\/user\/reset","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"password_confirm","value":"testtest","type":"text","enabled":true},{"key":"token","value":"z8iQafmgP1","type":"text","enabled":true}]},"description":"","response":[]}},{"name":"api\/authenticate\nAuthorize a user and login with an api_token. Used for persistent login in webapp.","request":{"url":"https:\/\/api.beep.nl\/api\/authenticate","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"Header parameter with Bearer [api_token] from the user object. Example: Bearer 1snu2aRRiwQNl2Tul567hLF0XpKuZO8hqkgXU4GvjzZ3f3pOCiDPFbBDea7W","response":[]}},{"name":"api\/user DELETE\nDestroy the logged in user and all its data in the database","request":{"url":"https:\/\/api.beep.nl\/api\/user","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"api\/user PATCH\nEdit the user details","request":{"url":"https:\/\/api.beep.nl\/api\/user","method":"PATCH","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@test.com","type":"text","enabled":true},{"key":"password","value":"testtest","type":"text","enabled":true},{"key":"password_confirm","value":"testtest","type":"text","enabled":true},{"key":"policy_accepted","value":"beep_terms_2018_05_25_avg_v1","type":"text","enabled":true}]},"description":"","response":[]}}]},{"name":"Api\\VerificationController","description":"","item":[{"name":"Show the email verification notice.","request":{"url":"https:\/\/api.beep.nl\/api\/email\/verify","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Mark the authenticated user's email address as verified.","request":{"url":"https:\/\/api.beep.nl\/api\/email\/verify\/{id}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Resend the email verification notification.","request":{"url":"https:\/\/api.beep.nl\/api\/email\/resend","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]},{"name":"general","description":"","item":[{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/weather","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display a listing of the resource.","request":{"url":"https:\/\/api.beep.nl\/api\/samplecode","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Store a newly created resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/samplecode","method":"POST","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Display the specified resource.","request":{"url":"https:\/\/api.beep.nl\/api\/samplecode\/{samplecode}","method":"GET","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}},{"name":"Update the specified resource in storage.","request":{"url":"https:\/\/api.beep.nl\/api\/samplecode\/{samplecode}","method":"PUT","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"urlencoded","urlencoded":[]},"description":"","response":[]}},{"name":"Remove the specified resource from storage.","request":{"url":"https:\/\/api.beep.nl\/api\/samplecode","method":"DELETE","header":[{"key":"Accept","value":"application\/json"}],"body":{"mode":"formdata","formdata":[]},"description":"","response":[]}}]}]} \ No newline at end of file diff --git a/public/docs/index.html b/public/docs/index.html index dabc6a09..8320355d 100644 --- a/public/docs/index.html +++ b/public/docs/index.html @@ -46,7 +46,7 @@

Info

Welcome to the generated API reference. -Get Postman Collection

+Get Postman Collection

Api\CategoryController

All categories in the categorization tree used for hive inspections @@ -58,8 +58,8 @@

api/categories

Example request:

-
curl -X GET -G "https://test.beep.nl/api/categories" 
-
const url = new URL("https://test.beep.nl/api/categories");
+
curl -X GET -G "https://api.beep.nl/api/categories" 
+
const url = new URL("https://api.beep.nl/api/categories");
 
 let headers = {
     "Accept": "application/json",
@@ -1519,8 +1519,8 @@ 

api/categories/{id}

Example request:

-
curl -X GET -G "https://test.beep.nl/api/categories/1" 
-
const url = new URL("https://test.beep.nl/api/categories/1");
+
curl -X GET -G "https://api.beep.nl/api/categories/1" 
+
const url = new URL("https://api.beep.nl/api/categories/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1548,8 +1548,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/checklists" 
-
const url = new URL("https://test.beep.nl/api/checklists");
+
curl -X GET -G "https://api.beep.nl/api/checklists" 
+
const url = new URL("https://api.beep.nl/api/checklists");
 
 let headers = {
     "Accept": "application/json",
@@ -1576,8 +1576,8 @@ 

api/checklists

Example request:

-
curl -X POST "https://test.beep.nl/api/checklists" 
-
const url = new URL("https://test.beep.nl/api/checklists");
+
curl -X POST "https://api.beep.nl/api/checklists" 
+
const url = new URL("https://api.beep.nl/api/checklists");
 
 let headers = {
     "Accept": "application/json",
@@ -1598,8 +1598,8 @@ 

api/checklists/{checklist}

Example request:

-
curl -X GET -G "https://test.beep.nl/api/checklists/1" 
-
const url = new URL("https://test.beep.nl/api/checklists/1");
+
curl -X GET -G "https://api.beep.nl/api/checklists/1" 
+
const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1626,8 +1626,8 @@ 

api/checklists/{checklist}

Example request:

-
curl -X PUT "https://test.beep.nl/api/checklists/1" 
-
const url = new URL("https://test.beep.nl/api/checklists/1");
+
curl -X PUT "https://api.beep.nl/api/checklists/1" 
+
const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1649,8 +1649,8 @@ 

api/checklists/{checklist}

Example request:

-
curl -X DELETE "https://test.beep.nl/api/checklists/1" 
-
const url = new URL("https://test.beep.nl/api/checklists/1");
+
curl -X DELETE "https://api.beep.nl/api/checklists/1" 
+
const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1675,11 +1675,11 @@ 

api/devices/multiple POST

Example request:

-
curl -X POST "https://test.beep.nl/api/devices/multiple" \
+
curl -X POST "https://api.beep.nl/api/devices/multiple" \
     -H "Content-Type: application/json" \
-    -d '{"id":15,"key":"ipsum","hardware_id":"soluta","name":"eaque","hive_id":16,"type":"pariatur","last_message_received":"corrupti","firmware_version":"voluptatem","hardware_version":"nihil","boot_count":5,"measurement_interval_min":10277.20748579,"measurement_transmission_ratio":23.812,"ble_pin":"explicabo","battery_voltage":469,"next_downlink_message":"atque","last_downlink_result":"animi"}'
+    -d '{"id":1,"key":"necessitatibus","hardware_id":"sit","name":"alias","hive_id":14,"type":"doloribus","last_message_received":"incidunt","firmware_version":"quis","hardware_version":"ex","boot_count":8,"measurement_interval_min":0,"measurement_transmission_ratio":6274348.332087,"ble_pin":"aut","battery_voltage":221881238,"next_downlink_message":"dolore","last_downlink_result":"exercitationem"}'
 
-
const url = new URL("https://test.beep.nl/api/devices/multiple");
+
const url = new URL("https://api.beep.nl/api/devices/multiple");
 
 let headers = {
     "Content-Type": "application/json",
@@ -1687,22 +1687,22 @@ 

api/devices/multiple POST

} let body = { - "id": 15, - "key": "ipsum", - "hardware_id": "soluta", - "name": "eaque", - "hive_id": 16, - "type": "pariatur", - "last_message_received": "corrupti", - "firmware_version": "voluptatem", - "hardware_version": "nihil", - "boot_count": 5, - "measurement_interval_min": 10277.20748579, - "measurement_transmission_ratio": 23.812, - "ble_pin": "explicabo", - "battery_voltage": 469, - "next_downlink_message": "atque", - "last_downlink_result": "animi" + "id": 1, + "key": "necessitatibus", + "hardware_id": "sit", + "name": "alias", + "hive_id": 14, + "type": "doloribus", + "last_message_received": "incidunt", + "firmware_version": "quis", + "hardware_version": "ex", + "boot_count": 8, + "measurement_interval_min": 0, + "measurement_transmission_ratio": 6274348.332087, + "ble_pin": "aut", + "battery_voltage": 221881238, + "next_downlink_message": "dolore", + "last_downlink_result": "exercitationem" } fetch(url, { @@ -1831,8 +1831,8 @@

api/devices/ttn/{dev_id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/devices/ttn/1" 
-
const url = new URL("https://test.beep.nl/api/devices/ttn/1");
+
curl -X GET -G "https://api.beep.nl/api/devices/ttn/1" 
+
const url = new URL("https://api.beep.nl/api/devices/ttn/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1867,8 +1867,8 @@ 

api/devices/ttn/{dev_id} POST

Example request:

-
curl -X POST "https://test.beep.nl/api/devices/ttn/1" 
-
const url = new URL("https://test.beep.nl/api/devices/ttn/1");
+
curl -X POST "https://api.beep.nl/api/devices/ttn/1" 
+
const url = new URL("https://api.beep.nl/api/devices/ttn/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1891,11 +1891,11 @@ 

api/devices GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/devices" \
+
curl -X GET -G "https://api.beep.nl/api/devices" \
     -H "Content-Type: application/json" \
-    -d '{"hardware_id":"voluptas"}'
+    -d '{"hardware_id":"similique"}'
 
-
const url = new URL("https://test.beep.nl/api/devices");
+
const url = new URL("https://api.beep.nl/api/devices");
 
 let headers = {
     "Content-Type": "application/json",
@@ -1903,7 +1903,7 @@ 

api/devices GET

} let body = { - "hardware_id": "voluptas" + "hardware_id": "similique" } fetch(url, { @@ -1989,11 +1989,11 @@

api/devices POST

Example request:

-
curl -X POST "https://test.beep.nl/api/devices" \
+
curl -X POST "https://api.beep.nl/api/devices" \
     -H "Content-Type: application/json" \
-    -d '{"id":20,"key":"in","hardware_id":"debitis","name":"nihil","hive_id":3,"type":"dignissimos","last_message_received":"mollitia","firmware_version":"incidunt","hardware_version":"voluptatibus","boot_count":10,"measurement_interval_min":390,"measurement_transmission_ratio":1.4775683,"ble_pin":"sed","battery_voltage":43592823.35,"next_downlink_message":"ab","last_downlink_result":"tenetur","create_ttn_device":false,"app_key":"autem"}'
+    -d '{"id":16,"key":"ab","hardware_id":"laudantium","name":"nostrum","hive_id":4,"type":"eum","last_message_received":"modi","firmware_version":"illum","hardware_version":"sed","boot_count":16,"measurement_interval_min":218.343005352,"measurement_transmission_ratio":13228.3832504,"ble_pin":"minus","battery_voltage":306.848,"next_downlink_message":"eveniet","last_downlink_result":"soluta","create_ttn_device":true,"app_key":"numquam"}'
 
-
const url = new URL("https://test.beep.nl/api/devices");
+
const url = new URL("https://api.beep.nl/api/devices");
 
 let headers = {
     "Content-Type": "application/json",
@@ -2001,24 +2001,24 @@ 

api/devices POST

} let body = { - "id": 20, - "key": "in", - "hardware_id": "debitis", - "name": "nihil", - "hive_id": 3, - "type": "dignissimos", - "last_message_received": "mollitia", - "firmware_version": "incidunt", - "hardware_version": "voluptatibus", - "boot_count": 10, - "measurement_interval_min": 390, - "measurement_transmission_ratio": 1.4775683, - "ble_pin": "sed", - "battery_voltage": 43592823.35, - "next_downlink_message": "ab", - "last_downlink_result": "tenetur", - "create_ttn_device": false, - "app_key": "autem" + "id": 16, + "key": "ab", + "hardware_id": "laudantium", + "name": "nostrum", + "hive_id": 4, + "type": "eum", + "last_message_received": "modi", + "firmware_version": "illum", + "hardware_version": "sed", + "boot_count": 16, + "measurement_interval_min": 218.343005352, + "measurement_transmission_ratio": 13228.3832504, + "ble_pin": "minus", + "battery_voltage": 306.848, + "next_downlink_message": "eveniet", + "last_downlink_result": "soluta", + "create_ttn_device": true, + "app_key": "numquam" } fetch(url, { @@ -2159,8 +2159,8 @@

api/devices/{id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/devices/1" 
-
const url = new URL("https://test.beep.nl/api/devices/1");
+
curl -X GET -G "https://api.beep.nl/api/devices/1" 
+
const url = new URL("https://api.beep.nl/api/devices/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2189,11 +2189,11 @@ 

api/devices PUT/PATCH

Example request:

-
curl -X PUT "https://test.beep.nl/api/devices/1" \
+
curl -X PUT "https://api.beep.nl/api/devices/1" \
     -H "Content-Type: application/json" \
-    -d '{"id":7,"key":"eligendi","hardware_id":"repellendus","name":"et","hive_id":3,"type":"reiciendis","delete":false,"last_message_received":"aliquam","firmware_version":"necessitatibus","hardware_version":"aut","boot_count":9,"measurement_interval_min":30.27043,"measurement_transmission_ratio":25.64,"ble_pin":"quisquam","battery_voltage":198.9654075,"next_downlink_message":"consequatur","last_downlink_result":"molestiae"}'
+    -d '{"id":20,"key":"praesentium","hardware_id":"eveniet","name":"quia","hive_id":7,"type":"laudantium","delete":true,"last_message_received":"quibusdam","firmware_version":"ipsum","hardware_version":"nostrum","boot_count":15,"measurement_interval_min":3998.31519,"measurement_transmission_ratio":35.514,"ble_pin":"consequatur","battery_voltage":591377700,"next_downlink_message":"error","last_downlink_result":"ipsum"}'
 
-
const url = new URL("https://test.beep.nl/api/devices/1");
+
const url = new URL("https://api.beep.nl/api/devices/1");
 
 let headers = {
     "Content-Type": "application/json",
@@ -2201,23 +2201,23 @@ 

api/devices PUT/PATCH

} let body = { - "id": 7, - "key": "eligendi", - "hardware_id": "repellendus", - "name": "et", - "hive_id": 3, - "type": "reiciendis", - "delete": false, - "last_message_received": "aliquam", - "firmware_version": "necessitatibus", - "hardware_version": "aut", - "boot_count": 9, - "measurement_interval_min": 30.27043, - "measurement_transmission_ratio": 25.64, - "ble_pin": "quisquam", - "battery_voltage": 198.9654075, - "next_downlink_message": "consequatur", - "last_downlink_result": "molestiae" + "id": 20, + "key": "praesentium", + "hardware_id": "eveniet", + "name": "quia", + "hive_id": 7, + "type": "laudantium", + "delete": true, + "last_message_received": "quibusdam", + "firmware_version": "ipsum", + "hardware_version": "nostrum", + "boot_count": 15, + "measurement_interval_min": 3998.31519, + "measurement_transmission_ratio": 35.514, + "ble_pin": "consequatur", + "battery_voltage": 591377700, + "next_downlink_message": "error", + "last_downlink_result": "ipsum" } fetch(url, { @@ -2353,8 +2353,8 @@

api/export

Example request:

-
curl -X GET -G "https://test.beep.nl/api/export" 
-
const url = new URL("https://test.beep.nl/api/export");
+
curl -X GET -G "https://api.beep.nl/api/export" 
+
const url = new URL("https://api.beep.nl/api/export");
 
 let headers = {
     "Accept": "application/json",
@@ -2381,8 +2381,8 @@ 

api/export/csv

Example request:

-
curl -X POST "https://test.beep.nl/api/export/csv" 
-
const url = new URL("https://test.beep.nl/api/export/csv");
+
curl -X POST "https://api.beep.nl/api/export/csv" 
+
const url = new URL("https://api.beep.nl/api/export/csv");
 
 let headers = {
     "Accept": "application/json",
@@ -2404,8 +2404,8 @@ 

api/groups/checktoken

Example request:

-
curl -X POST "https://test.beep.nl/api/groups/checktoken" 
-
const url = new URL("https://test.beep.nl/api/groups/checktoken");
+
curl -X POST "https://api.beep.nl/api/groups/checktoken" 
+
const url = new URL("https://api.beep.nl/api/groups/checktoken");
 
 let headers = {
     "Accept": "application/json",
@@ -2426,8 +2426,8 @@ 

api/groups

Example request:

-
curl -X GET -G "https://test.beep.nl/api/groups" 
-
const url = new URL("https://test.beep.nl/api/groups");
+
curl -X GET -G "https://api.beep.nl/api/groups" 
+
const url = new URL("https://api.beep.nl/api/groups");
 
 let headers = {
     "Accept": "application/json",
@@ -2454,8 +2454,8 @@ 

api/groups

Example request:

-
curl -X POST "https://test.beep.nl/api/groups" 
-
const url = new URL("https://test.beep.nl/api/groups");
+
curl -X POST "https://api.beep.nl/api/groups" 
+
const url = new URL("https://api.beep.nl/api/groups");
 
 let headers = {
     "Accept": "application/json",
@@ -2476,8 +2476,8 @@ 

api/groups/{group}

Example request:

-
curl -X GET -G "https://test.beep.nl/api/groups/1" 
-
const url = new URL("https://test.beep.nl/api/groups/1");
+
curl -X GET -G "https://api.beep.nl/api/groups/1" 
+
const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2504,8 +2504,8 @@ 

api/groups/{group}

Example request:

-
curl -X PUT "https://test.beep.nl/api/groups/1" 
-
const url = new URL("https://test.beep.nl/api/groups/1");
+
curl -X PUT "https://api.beep.nl/api/groups/1" 
+
const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2527,8 +2527,8 @@ 

api/groups/{group}

Example request:

-
curl -X DELETE "https://test.beep.nl/api/groups/1" 
-
const url = new URL("https://test.beep.nl/api/groups/1");
+
curl -X DELETE "https://api.beep.nl/api/groups/1" 
+
const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2549,8 +2549,8 @@ 

api/groups/detach/{id}

Example request:

-
curl -X DELETE "https://test.beep.nl/api/groups/detach/1" 
-
const url = new URL("https://test.beep.nl/api/groups/detach/1");
+
curl -X DELETE "https://api.beep.nl/api/groups/detach/1" 
+
const url = new URL("https://api.beep.nl/api/groups/detach/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2574,8 +2574,8 @@ 

api/hives GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/hives" 
-
const url = new URL("https://test.beep.nl/api/hives");
+
curl -X GET -G "https://api.beep.nl/api/hives" 
+
const url = new URL("https://api.beep.nl/api/hives");
 
 let headers = {
     "Accept": "application/json",
@@ -2655,8 +2655,8 @@ 

api/hives POST

Example request:

-
curl -X POST "https://test.beep.nl/api/hives" 
-
const url = new URL("https://test.beep.nl/api/hives");
+
curl -X POST "https://api.beep.nl/api/hives" 
+
const url = new URL("https://api.beep.nl/api/hives");
 
 let headers = {
     "Accept": "application/json",
@@ -2679,8 +2679,8 @@ 

api/hives/{id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/hives/1" 
-
const url = new URL("https://test.beep.nl/api/hives/1");
+
curl -X GET -G "https://api.beep.nl/api/hives/1" 
+
const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2709,8 +2709,8 @@ 

api/hives/{id} PATCH

Example request:

-
curl -X PUT "https://test.beep.nl/api/hives/1" 
-
const url = new URL("https://test.beep.nl/api/hives/1");
+
curl -X PUT "https://api.beep.nl/api/hives/1" 
+
const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2734,8 +2734,8 @@ 

api/hives/{id} DELETE

Example request:

-
curl -X DELETE "https://test.beep.nl/api/hives/1" 
-
const url = new URL("https://test.beep.nl/api/hives/1");
+
curl -X DELETE "https://api.beep.nl/api/hives/1" 
+
const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2758,8 +2758,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/images" 
-
const url = new URL("https://test.beep.nl/api/images");
+
curl -X GET -G "https://api.beep.nl/api/images" 
+
const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2786,8 +2786,8 @@ 

Store a newly created resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/images" 
-
const url = new URL("https://test.beep.nl/api/images");
+
curl -X POST "https://api.beep.nl/api/images" 
+
const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2808,8 +2808,8 @@ 

Display the specified resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/images/1" 
-
const url = new URL("https://test.beep.nl/api/images/1");
+
curl -X GET -G "https://api.beep.nl/api/images/1" 
+
const url = new URL("https://api.beep.nl/api/images/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2836,8 +2836,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X PUT "https://test.beep.nl/api/images/1" 
-
const url = new URL("https://test.beep.nl/api/images/1");
+
curl -X PUT "https://api.beep.nl/api/images/1" 
+
const url = new URL("https://api.beep.nl/api/images/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2859,8 +2859,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/images" 
-
const url = new URL("https://test.beep.nl/api/images");
+
curl -X DELETE "https://api.beep.nl/api/images" 
+
const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2884,8 +2884,8 @@ 

api/inspections GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/inspections" 
-
const url = new URL("https://test.beep.nl/api/inspections");
+
curl -X GET -G "https://api.beep.nl/api/inspections" 
+
const url = new URL("https://api.beep.nl/api/inspections");
 
 let headers = {
     "Accept": "application/json",
@@ -2914,11 +2914,11 @@ 

api/inspections/lists GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/inspections/lists" \
+
curl -X GET -G "https://api.beep.nl/api/inspections/lists" \
     -H "Content-Type: application/json" \
-    -d '{"id":9}'
+    -d '{"id":15}'
 
-
const url = new URL("https://test.beep.nl/api/inspections/lists");
+
const url = new URL("https://api.beep.nl/api/inspections/lists");
 
 let headers = {
     "Content-Type": "application/json",
@@ -2926,7 +2926,7 @@ 

api/inspections/lists GET

} let body = { - "id": 9 + "id": 15 } fetch(url, { @@ -3001,13 +3001,8 @@

api/inspections/{id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/inspections/1?id=pariatur" 
-
const url = new URL("https://test.beep.nl/api/inspections/1");
-
-    let params = {
-            "id": "pariatur",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+
curl -X GET -G "https://api.beep.nl/api/inspections/1" 
+
const url = new URL("https://api.beep.nl/api/inspections/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3028,23 +3023,6 @@ 

api/inspections/{id} GET

}

HTTP Request

GET api/inspections/{id}

-

Query Parameters

- - - - - - - - - - - - - - - -
ParameterStatusDescription
idrequiredThe id of the inspection.

api/inspections/hive/{hive_id} GET

@@ -3053,13 +3031,8 @@

api/inspections/hive/{hive_id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/inspections/hive/1?hive_id=dolores" 
-
const url = new URL("https://test.beep.nl/api/inspections/hive/1");
-
-    let params = {
-            "hive_id": "dolores",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+
curl -X GET -G "https://api.beep.nl/api/inspections/hive/1" 
+
const url = new URL("https://api.beep.nl/api/inspections/hive/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3176,23 +3149,6 @@ 

api/inspections/hive/{hive_id} GET

}

HTTP Request

GET api/inspections/hive/{hive_id}

-

Query Parameters

- - - - - - - - - - - - - - - -
ParameterStatusDescription
hive_idrequiredThe hive to request inspections from.

api/inspections POST

@@ -3201,11 +3157,11 @@

api/inspections POST

Example request:

-
curl -X POST "https://test.beep.nl/api/inspections/store" \
+
curl -X POST "https://api.beep.nl/api/inspections/store" \
     -H "Content-Type: application/json" \
     -d '{"date":"2020-05-18 16:16","items":"{\"547\":0,\"595\":1,\"845\":\"814\"}","hive_id":42,"impression":-1,"attention":1,"reminder":"This is an inspection reminder","reminder_date":"2020-05-27 16:16","notes":"This is an inspection note","checklist_id":829}'
 
-
const url = new URL("https://test.beep.nl/api/inspections/store");
+
const url = new URL("https://api.beep.nl/api/inspections/store");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3306,8 +3262,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/inspections/1" 
-
const url = new URL("https://test.beep.nl/api/inspections/1");
+
curl -X DELETE "https://api.beep.nl/api/inspections/1" 
+
const url = new URL("https://api.beep.nl/api/inspections/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3330,8 +3286,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/locations" 
-
const url = new URL("https://test.beep.nl/api/locations");
+
curl -X GET -G "https://api.beep.nl/api/locations" 
+
const url = new URL("https://api.beep.nl/api/locations");
 
 let headers = {
     "Accept": "application/json",
@@ -3358,8 +3314,8 @@ 

Store a newly created resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/locations" 
-
const url = new URL("https://test.beep.nl/api/locations");
+
curl -X POST "https://api.beep.nl/api/locations" 
+
const url = new URL("https://api.beep.nl/api/locations");
 
 let headers = {
     "Accept": "application/json",
@@ -3380,8 +3336,8 @@ 

Display the specified resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/locations/1" 
-
const url = new URL("https://test.beep.nl/api/locations/1");
+
curl -X GET -G "https://api.beep.nl/api/locations/1" 
+
const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3408,8 +3364,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X PUT "https://test.beep.nl/api/locations/1" 
-
const url = new URL("https://test.beep.nl/api/locations/1");
+
curl -X PUT "https://api.beep.nl/api/locations/1" 
+
const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3431,8 +3387,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/locations/1" 
-
const url = new URL("https://test.beep.nl/api/locations/1");
+
curl -X DELETE "https://api.beep.nl/api/locations/1" 
+
const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3456,11 +3412,11 @@ 

api/sensors POST

Example request:

-
curl -X POST "https://test.beep.nl/api/sensors" \
+
curl -X POST "https://api.beep.nl/api/sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"dignissimos","data":[],"payload_fields":[]}'
+    -d '{"key":"dicta","data":[],"payload_fields":[]}'
 
-
const url = new URL("https://test.beep.nl/api/sensors");
+
const url = new URL("https://api.beep.nl/api/sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3468,7 +3424,7 @@ 

api/sensors POST

} let body = { - "key": "dignissimos", + "key": "dicta", "data": [], "payload_fields": [] } @@ -3522,11 +3478,11 @@

api/lora_sensors POST

Example request:

-
curl -X POST "https://test.beep.nl/api/lora_sensors" \
+
curl -X POST "https://api.beep.nl/api/lora_sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"facilis","payload_fields":[],"DevEUI_uplink":[]}'
+    -d '{"key":"recusandae","payload_fields":[],"DevEUI_uplink":[]}'
 
-
const url = new URL("https://test.beep.nl/api/lora_sensors");
+
const url = new URL("https://api.beep.nl/api/lora_sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3534,7 +3490,7 @@ 

api/lora_sensors POST

} let body = { - "key": "facilis", + "key": "recusandae", "payload_fields": [], "DevEUI_uplink": [] } @@ -3586,11 +3542,11 @@

api/sensors POST

Example request:

-
curl -X POST "https://test.beep.nl/api/unsecure_sensors" \
+
curl -X POST "https://api.beep.nl/api/unsecure_sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"vero","data":[],"payload_fields":[]}'
+    -d '{"key":"id","data":[],"payload_fields":[]}'
 
-
const url = new URL("https://test.beep.nl/api/unsecure_sensors");
+
const url = new URL("https://api.beep.nl/api/unsecure_sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3598,7 +3554,7 @@ 

api/sensors POST

} let body = { - "key": "vero", + "key": "id", "data": [], "payload_fields": [] } @@ -3651,11 +3607,11 @@

api/sensors/measurements GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensors/measurements" \
+
curl -X GET -G "https://api.beep.nl/api/sensors/measurements" \
     -H "Content-Type: application/json" \
-    -d '{"key":"deserunt","id":5,"hive_id":4,"names":"nobis","interval":"blanditiis","index":16}'
+    -d '{"key":"deserunt","id":1,"hive_id":3,"names":"veritatis","interval":"quae","index":11}'
 
-
const url = new URL("https://test.beep.nl/api/sensors/measurements");
+
const url = new URL("https://api.beep.nl/api/sensors/measurements");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3664,11 +3620,11 @@ 

api/sensors/measurements GET

let body = { "key": "deserunt", - "id": 5, - "hive_id": 4, - "names": "nobis", - "interval": "blanditiis", - "index": 16 + "id": 1, + "hive_id": 3, + "names": "veritatis", + "interval": "quae", + "index": 11 } fetch(url, { @@ -3743,11 +3699,11 @@

api/sensors/lastvalues GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensors/lastvalues" \
+
curl -X GET -G "https://api.beep.nl/api/sensors/lastvalues" \
     -H "Content-Type: application/json" \
-    -d '{"key":"consectetur","id":5,"hive_id":2}'
+    -d '{"key":"magni","id":20,"hive_id":9}'
 
-
const url = new URL("https://test.beep.nl/api/sensors/lastvalues");
+
const url = new URL("https://api.beep.nl/api/sensors/lastvalues");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3755,9 +3711,9 @@ 

api/sensors/lastvalues GET

} let body = { - "key": "consectetur", - "id": 5, - "hive_id": 2 + "key": "magni", + "id": 20, + "hive_id": 9 } fetch(url, { @@ -3814,11 +3770,11 @@

api/sensors/lastweight GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensors/lastweight" \
+
curl -X GET -G "https://api.beep.nl/api/sensors/lastweight" \
     -H "Content-Type: application/json" \
-    -d '{"key":"numquam","id":3,"hive_id":19}'
+    -d '{"key":"molestiae","id":6,"hive_id":7}'
 
-
const url = new URL("https://test.beep.nl/api/sensors/lastweight");
+
const url = new URL("https://api.beep.nl/api/sensors/lastweight");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3826,9 +3782,9 @@ 

api/sensors/lastweight GET

} let body = { - "key": "numquam", - "id": 3, - "hive_id": 19 + "key": "molestiae", + "id": 6, + "hive_id": 7 } fetch(url, { @@ -3894,8 +3850,8 @@

api/sensors/calibrateweight

Example request:

-
curl -X POST "https://test.beep.nl/api/sensors/calibrateweight" 
-
const url = new URL("https://test.beep.nl/api/sensors/calibrateweight");
+
curl -X POST "https://api.beep.nl/api/sensors/calibrateweight" 
+
const url = new URL("https://api.beep.nl/api/sensors/calibrateweight");
 
 let headers = {
     "Accept": "application/json",
@@ -3916,8 +3872,8 @@ 

api/sensors/offsetweight

Example request:

-
curl -X POST "https://test.beep.nl/api/sensors/offsetweight" 
-
const url = new URL("https://test.beep.nl/api/sensors/offsetweight");
+
curl -X POST "https://api.beep.nl/api/sensors/offsetweight" 
+
const url = new URL("https://api.beep.nl/api/sensors/offsetweight");
 
 let headers = {
     "Accept": "application/json",
@@ -3938,8 +3894,8 @@ 

api/sensors/measurement_types_available

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensors/measurement_types_available" 
-
const url = new URL("https://test.beep.nl/api/sensors/measurement_types_available");
+
curl -X GET -G "https://api.beep.nl/api/sensors/measurement_types_available" 
+
const url = new URL("https://api.beep.nl/api/sensors/measurement_types_available");
 
 let headers = {
     "Accept": "application/json",
@@ -3969,11 +3925,11 @@ 

api/lora_sensors POST

Example request:

-
curl -X POST "https://test.beep.nl/api/lora_sensors_auth" \
+
curl -X POST "https://api.beep.nl/api/lora_sensors_auth" \
     -H "Content-Type: application/json" \
-    -d '{"key":"eum","payload_fields":[],"DevEUI_uplink":[]}'
+    -d '{"key":"totam","payload_fields":[],"DevEUI_uplink":[]}'
 
-
const url = new URL("https://test.beep.nl/api/lora_sensors_auth");
+
const url = new URL("https://api.beep.nl/api/lora_sensors_auth");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3981,7 +3937,7 @@ 

api/lora_sensors POST

} let body = { - "key": "eum", + "key": "totam", "payload_fields": [], "DevEUI_uplink": [] } @@ -4034,8 +3990,8 @@

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/productions" 
-
const url = new URL("https://test.beep.nl/api/productions");
+
curl -X GET -G "https://api.beep.nl/api/productions" 
+
const url = new URL("https://api.beep.nl/api/productions");
 
 let headers = {
     "Accept": "application/json",
@@ -4062,8 +4018,8 @@ 

Store a newly created resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/productions" 
-
const url = new URL("https://test.beep.nl/api/productions");
+
curl -X POST "https://api.beep.nl/api/productions" 
+
const url = new URL("https://api.beep.nl/api/productions");
 
 let headers = {
     "Accept": "application/json",
@@ -4084,8 +4040,8 @@ 

Display the specified resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/productions/1" 
-
const url = new URL("https://test.beep.nl/api/productions/1");
+
curl -X GET -G "https://api.beep.nl/api/productions/1" 
+
const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4112,8 +4068,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X PUT "https://test.beep.nl/api/productions/1" 
-
const url = new URL("https://test.beep.nl/api/productions/1");
+
curl -X PUT "https://api.beep.nl/api/productions/1" 
+
const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4135,8 +4091,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/productions/1" 
-
const url = new URL("https://test.beep.nl/api/productions/1");
+
curl -X DELETE "https://api.beep.nl/api/productions/1" 
+
const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4159,8 +4115,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/queens" 
-
const url = new URL("https://test.beep.nl/api/queens");
+
curl -X GET -G "https://api.beep.nl/api/queens" 
+
const url = new URL("https://api.beep.nl/api/queens");
 
 let headers = {
     "Accept": "application/json",
@@ -4187,8 +4143,8 @@ 

Store a newly created resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/queens" 
-
const url = new URL("https://test.beep.nl/api/queens");
+
curl -X POST "https://api.beep.nl/api/queens" 
+
const url = new URL("https://api.beep.nl/api/queens");
 
 let headers = {
     "Accept": "application/json",
@@ -4209,8 +4165,8 @@ 

Display the specified resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/queens/1" 
-
const url = new URL("https://test.beep.nl/api/queens/1");
+
curl -X GET -G "https://api.beep.nl/api/queens/1" 
+
const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4237,8 +4193,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X PUT "https://test.beep.nl/api/queens/1" 
-
const url = new URL("https://test.beep.nl/api/queens/1");
+
curl -X PUT "https://api.beep.nl/api/queens/1" 
+
const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4260,8 +4216,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/queens/1" 
-
const url = new URL("https://test.beep.nl/api/queens/1");
+
curl -X DELETE "https://api.beep.nl/api/queens/1" 
+
const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4283,8 +4239,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/research" 
-
const url = new URL("https://test.beep.nl/api/research");
+
curl -X GET -G "https://api.beep.nl/api/research" 
+
const url = new URL("https://api.beep.nl/api/research");
 
 let headers = {
     "Accept": "application/json",
@@ -4311,8 +4267,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/research/1/add_consent" 
-
const url = new URL("https://test.beep.nl/api/research/1/add_consent");
+
curl -X POST "https://api.beep.nl/api/research/1/add_consent" 
+
const url = new URL("https://api.beep.nl/api/research/1/add_consent");
 
 let headers = {
     "Accept": "application/json",
@@ -4333,8 +4289,8 @@ 

api/research/{id}/remove_consent

Example request:

-
curl -X POST "https://test.beep.nl/api/research/1/remove_consent" 
-
const url = new URL("https://test.beep.nl/api/research/1/remove_consent");
+
curl -X POST "https://api.beep.nl/api/research/1/remove_consent" 
+
const url = new URL("https://api.beep.nl/api/research/1/remove_consent");
 
 let headers = {
     "Accept": "application/json",
@@ -4355,8 +4311,8 @@ 

api/research/{id}/edit/{consent_id}

Example request:

-
curl -X PATCH "https://test.beep.nl/api/research/1/edit/1" 
-
const url = new URL("https://test.beep.nl/api/research/1/edit/1");
+
curl -X PATCH "https://api.beep.nl/api/research/1/edit/1" 
+
const url = new URL("https://api.beep.nl/api/research/1/edit/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4377,8 +4333,8 @@ 

api/research/{id}/delete/{consent_id}

Example request:

-
curl -X DELETE "https://test.beep.nl/api/research/1/delete/1" 
-
const url = new URL("https://test.beep.nl/api/research/1/delete/1");
+
curl -X DELETE "https://api.beep.nl/api/research/1/delete/1" 
+
const url = new URL("https://api.beep.nl/api/research/1/delete/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4403,8 +4359,8 @@ 

api/researchdata GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/researchdata" 
-
const url = new URL("https://test.beep.nl/api/researchdata");
+
curl -X GET -G "https://api.beep.nl/api/researchdata" 
+
const url = new URL("https://api.beep.nl/api/researchdata");
 
 let headers = {
     "Accept": "application/json",
@@ -4418,6 +4374,86 @@ 

api/researchdata GET

.then(response => response.json()) .then(json => console.log(json));
+

Example response (200):

+
+
[
+    {
+        "id": 1,
+        "created_at": "2020-02-25 03:01:57",
+        "updated_at": "2020-11-13 17:08:31",
+        "name": "B-GOOD",
+        "url": "https:\/\/b-good-project.eu\/",
+        "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+        "type": "research-b-good",
+        "institution": "Wageningen University & Research",
+        "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data",
+        "start_date": "2019-07-01 00:00:00",
+        "end_date": "2023-06-30 00:00:00",
+        "image_id": 1,
+        "consent": true,
+        "consent_history": [
+            {
+                "id": 185,
+                "created_at": "2020-11-12 22:28:09",
+                "updated_at": "2020-06-12 22:28:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 1,
+                "created_at": "2020-02-25 03:02:23",
+                "updated_at": "2020-05-27 03:03:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 0,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 97,
+                "created_at": "2020-05-14 16:24:41",
+                "updated_at": "2020-03-14 16:24:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            }
+        ],
+        "checklist_names": [
+            "1 Winter",
+            "2 Varroa",
+            "3 Summer+",
+            "4 Summer",
+            "5 Health"
+        ],
+        "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+        "image": {
+            "id": 1,
+            "created_at": "2020-02-25 03:01:57",
+            "updated_at": "2020-02-25 03:01:57",
+            "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+            "type": "research",
+            "height": 1271,
+            "width": 1271,
+            "size_kb": 51,
+            "date": "2020-02-25 03:01:57",
+            "hive_id": null,
+            "category_id": null,
+            "inspection_id": null
+        }
+    }
+]
+

Example response (401):

{
@@ -4433,13 +4469,8 @@ 

api/researchdata/{id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/researchdata/1?id=consequatur" 
-
const url = new URL("https://test.beep.nl/api/researchdata/1");
-
-    let params = {
-            "id": "consequatur",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+
curl -X GET -G "https://api.beep.nl/api/researchdata/1" 
+
const url = new URL("https://api.beep.nl/api/researchdata/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4453,6 +4484,118 @@ 

api/researchdata/{id} GET

.then(response => response.json()) .then(json => console.log(json));
+

Example response (200):

+
+
{
+    "research": {
+        "id": 1,
+        "created_at": "2020-02-25 03:01:57",
+        "updated_at": "2020-11-18 10:33:23",
+        "name": "B-GOOD",
+        "url": "https:\/\/b-good-project.eu\/",
+        "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+        "type": "research-b-good",
+        "institution": "Wageningen University & Research",
+        "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data",
+        "start_date": "2019-07-01 00:00:00",
+        "end_date": "2023-06-30 00:00:00",
+        "image_id": 1,
+        "consent": true,
+        "consent_history": [
+            {
+                "id": 185,
+                "created_at": "2020-11-12 22:28:09",
+                "updated_at": "2020-06-12 22:28:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 1,
+                "created_at": "2020-02-25 03:02:23",
+                "updated_at": "2020-05-27 03:03:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 0,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 97,
+                "created_at": "2020-05-14 16:24:41",
+                "updated_at": "2020-03-14 16:24:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            }
+        ],
+        "checklist_names": [
+            "1 Winter",
+            "2 Varroa",
+            "3 Summer+",
+            "4 Summer",
+            "5 Health"
+        ],
+        "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+        "image": {
+            "id": 1,
+            "created_at": "2020-02-25 03:01:57",
+            "updated_at": "2020-02-25 03:01:57",
+            "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+            "type": "research",
+            "height": 1271,
+            "width": 1271,
+            "size_kb": 51,
+            "date": "2020-02-25 03:01:57",
+            "hive_id": null,
+            "category_id": null,
+            "inspection_id": null
+        }
+    },
+    "consent_users": [
+        {
+            "id": 1,
+            "name": "Beep",
+            "email": "pim@beep.nl",
+            "created_at": "2017-07-14 03:34:10",
+            "updated_at": "2020-05-27 03:03:00",
+            "last_login": "2020-11-18 10:32:16",
+            "locale": null,
+            "consent": 0
+        },
+        {
+            "id": 2371,
+            "name": "app@beep.nl",
+            "email": "app@beep.nl",
+            "created_at": "2019-10-24 17:15:55",
+            "updated_at": "2020-02-25 11:46:59",
+            "last_login": "2020-08-20 18:24:22",
+            "locale": null,
+            "consent": 0
+        },
+        {
+            "id": 1,
+            "name": "Beep",
+            "email": "pim@beep.nl",
+            "created_at": "2017-07-14 03:34:10",
+            "updated_at": "2020-06-12 22:28:00",
+            "last_login": "2020-11-18 10:32:16",
+            "locale": null,
+            "consent": 1
+        }
+    ]
+}
+

Example response (401):

{
@@ -4460,43 +4603,19 @@ 

api/researchdata/{id} GET

}

HTTP Request

GET api/researchdata/{id}

-

Query Parameters

- - - - - - - - - - - - - - - -
ParameterStatusDescription
idrequiredThe research ID to request data from.

api/researchdata/{id}/user/{user_id}/{item} GET

-

List all user 'item' data within the consent=1 periods of a specific user within a Research.

+

List all user 'item' data within the consent=1 periods of a specific user within a Research. The 'item' field indicates the type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). Example: inspectionsResponse: api/researchdata/1/user/1/inspections.


Requires authentication

Example request:

-
curl -X GET -G "https://test.beep.nl/api/researchdata/1/user/1/1?id=voluptates&user_id=porro&item=amet" \
+
curl -X GET -G "https://api.beep.nl/api/researchdata/1/user/1/1" \
     -H "Content-Type: application/json" \
-    -d '{"date_start":"suscipit","date_until":"sed"}'
+    -d '{"date_start":"2020-01-01 00:00:00","date_until":"2020-09-29 23:59:59"}'
 
-
const url = new URL("https://test.beep.nl/api/researchdata/1/user/1/1");
-
-    let params = {
-            "id": "voluptates",
-            "user_id": "porro",
-            "item": "amet",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+
const url = new URL("https://api.beep.nl/api/researchdata/1/user/1/1");
 
 let headers = {
     "Content-Type": "application/json",
@@ -4504,8 +4623,8 @@ 

api/researchdata/{id}/user/{user_id}/{item} GET

} let body = { - "date_start": "suscipit", - "date_until": "sed" + "date_start": "2020-01-01 00:00:00", + "date_until": "2020-09-29 23:59:59" } fetch(url, { @@ -4516,6 +4635,395 @@

api/researchdata/{id}/user/{user_id}/{item} GET

.then(response => response.json()) .then(json => console.log(json));
+

Example response (200):

+
+
[
+    {
+        "id": 35211,
+        "notes": "test",
+        "reminder": null,
+        "reminder_date": null,
+        "impression": 2,
+        "attention": 1,
+        "created_at": "2020-03-26 18:28:00",
+        "checklist_id": 798,
+        "image_id": null,
+        "owner": true,
+        "thumb_url": null,
+        "hive_id": 280,
+        "items": []
+    },
+    {
+        "id": 40162,
+        "notes": "Input Liebefeld",
+        "reminder": null,
+        "reminder_date": null,
+        "impression": null,
+        "attention": null,
+        "created_at": "2020-04-24 11:03:00",
+        "checklist_id": 3206,
+        "image_id": null,
+        "owner": true,
+        "thumb_url": null,
+        "hive_id": 280,
+        "items": [
+            {
+                "id": 326538,
+                "value": "0.6",
+                "inspection_id": 40162,
+                "category_id": 977,
+                "val": "0.6",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326539,
+                "value": "4",
+                "inspection_id": 40162,
+                "category_id": 978,
+                "val": "4",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326540,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 979,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326541,
+                "value": "4",
+                "inspection_id": 40162,
+                "category_id": 980,
+                "val": "4",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326542,
+                "value": "3",
+                "inspection_id": 40162,
+                "category_id": 981,
+                "val": "3",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326543,
+                "value": "581",
+                "inspection_id": 40162,
+                "category_id": 982,
+                "val": "581",
+                "unit": "bzz",
+                "type": "number_positive"
+            },
+            {
+                "id": 326544,
+                "value": "5",
+                "inspection_id": 40162,
+                "category_id": 984,
+                "val": "5",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326545,
+                "value": "1",
+                "inspection_id": 40162,
+                "category_id": 985,
+                "val": "1",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326546,
+                "value": "4",
+                "inspection_id": 40162,
+                "category_id": 987,
+                "val": "4",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326547,
+                "value": "5",
+                "inspection_id": 40162,
+                "category_id": 988,
+                "val": "5",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326548,
+                "value": "4",
+                "inspection_id": 40162,
+                "category_id": 989,
+                "val": "4",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326549,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 990,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326550,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 991,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326551,
+                "value": "3",
+                "inspection_id": 40162,
+                "category_id": 992,
+                "val": "3",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326552,
+                "value": "3",
+                "inspection_id": 40162,
+                "category_id": 993,
+                "val": "3",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326553,
+                "value": "6",
+                "inspection_id": 40162,
+                "category_id": 995,
+                "val": "6",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326554,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 996,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326555,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 997,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326556,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 998,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326557,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 999,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326558,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 1000,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326559,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 1001,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326560,
+                "value": "8",
+                "inspection_id": 40162,
+                "category_id": 1163,
+                "val": "8",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326561,
+                "value": "4",
+                "inspection_id": 40162,
+                "category_id": 1164,
+                "val": "4",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326562,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 1165,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326563,
+                "value": "6",
+                "inspection_id": 40162,
+                "category_id": 1166,
+                "val": "6",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326564,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 1167,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326565,
+                "value": "2",
+                "inspection_id": 40162,
+                "category_id": 1168,
+                "val": "2",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            },
+            {
+                "id": 326566,
+                "value": "3",
+                "inspection_id": 40162,
+                "category_id": 1169,
+                "val": "3",
+                "unit": "x 25cm2",
+                "type": "square_25cm2"
+            }
+        ]
+    },
+    {
+        "id": 40163,
+        "notes": "Brood photograph",
+        "reminder": null,
+        "reminder_date": null,
+        "impression": null,
+        "attention": null,
+        "created_at": "2020-04-24 11:07:00",
+        "checklist_id": 3206,
+        "image_id": null,
+        "owner": true,
+        "thumb_url": null,
+        "hive_id": 280,
+        "items": [
+            {
+                "id": 326567,
+                "value": "1",
+                "inspection_id": 40163,
+                "category_id": 399,
+                "val": "Ja",
+                "unit": null,
+                "type": "boolean"
+            },
+            {
+                "id": 326568,
+                "value": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png",
+                "inspection_id": 40163,
+                "category_id": 973,
+                "val": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png",
+                "unit": null,
+                "type": "image"
+            }
+        ]
+    },
+    {
+        "id": 68477,
+        "notes": null,
+        "reminder": null,
+        "reminder_date": null,
+        "impression": 3,
+        "attention": 1,
+        "created_at": "2020-10-23 12:43:00",
+        "checklist_id": 3206,
+        "image_id": null,
+        "owner": true,
+        "thumb_url": null,
+        "hive_id": 281,
+        "items": []
+    },
+    {
+        "id": 68478,
+        "notes": "Hive change",
+        "reminder": null,
+        "reminder_date": null,
+        "impression": null,
+        "attention": null,
+        "created_at": "2020-10-23 13:12:33",
+        "checklist_id": null,
+        "image_id": null,
+        "owner": true,
+        "thumb_url": null,
+        "hive_id": 281,
+        "items": [
+            {
+                "id": 522496,
+                "value": "2",
+                "inspection_id": 68478,
+                "category_id": 85,
+                "val": "2",
+                "unit": null,
+                "type": "number_positive"
+            },
+            {
+                "id": 522497,
+                "value": "2",
+                "inspection_id": 68478,
+                "category_id": 87,
+                "val": "2",
+                "unit": null,
+                "type": "number"
+            },
+            {
+                "id": 522498,
+                "value": "10",
+                "inspection_id": 68478,
+                "category_id": 89,
+                "val": "10",
+                "unit": null,
+                "type": "number_positive"
+            }
+        ]
+    }
+]
+

Example response (401):

{
@@ -4548,33 +5056,6 @@ 

Body Parameters

-

Query Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - -
ParameterStatusDescription
idrequiredThe research ID to request data from.
user_idrequiredThe user id to request data from.
itemrequiredThe type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use).

Api\SensorDefinitionController

@@ -4584,11 +5065,11 @@

api/sensordefinition GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensordefinition" \
+
curl -X GET -G "https://api.beep.nl/api/sensordefinition" \
     -H "Content-Type: application/json" \
-    -d '{"device_id":12,"device_hardware_id":"maiores","input_measurement_abbreviation":"incidunt","limit":20}'
+    -d '{"device_id":8,"device_hardware_id":"hic","input_measurement_abbreviation":"non","limit":14}'
 
-
const url = new URL("https://test.beep.nl/api/sensordefinition");
+
const url = new URL("https://api.beep.nl/api/sensordefinition");
 
 let headers = {
     "Content-Type": "application/json",
@@ -4596,10 +5077,10 @@ 

api/sensordefinition GET

} let body = { - "device_id": 12, - "device_hardware_id": "maiores", - "input_measurement_abbreviation": "incidunt", - "limit": 20 + "device_id": 8, + "device_hardware_id": "hic", + "input_measurement_abbreviation": "non", + "limit": 14 } fetch(url, { @@ -4662,11 +5143,11 @@

api/sensordefinition POST

Example request:

-
curl -X POST "https://test.beep.nl/api/sensordefinition" \
+
curl -X POST "https://api.beep.nl/api/sensordefinition" \
     -H "Content-Type: application/json" \
-    -d '{"name":"iure","inside":false,"offset":806571.656330946,"multiplier":242.72931977,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":4,"device_hardware_id":"eos"}'
+    -d '{"name":"aut","inside":false,"offset":2023.3,"multiplier":28.832819,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":6,"device_hardware_id":"nihil"}'
 
-
const url = new URL("https://test.beep.nl/api/sensordefinition");
+
const url = new URL("https://api.beep.nl/api/sensordefinition");
 
 let headers = {
     "Content-Type": "application/json",
@@ -4674,16 +5155,16 @@ 

api/sensordefinition POST

} let body = { - "name": "iure", + "name": "aut", "inside": false, - "offset": 806571.656330946, - "multiplier": 242.72931977, + "offset": 2023.3, + "multiplier": 28.832819, "input_measurement_id": 5, "input_measurement_abbreviation": "w_v", "output_measurement_id": 6, "output_measurement_abbreviation": "t_i", - "device_id": 4, - "device_hardware_id": "eos" + "device_id": 6, + "device_hardware_id": "nihil" } fetch(url, { @@ -4775,8 +5256,8 @@

api/sensordefinition/{id} GET

Example request:

-
curl -X GET -G "https://test.beep.nl/api/sensordefinition/1" 
-
const url = new URL("https://test.beep.nl/api/sensordefinition/1");
+
curl -X GET -G "https://api.beep.nl/api/sensordefinition/1" 
+
const url = new URL("https://api.beep.nl/api/sensordefinition/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4804,8 +5285,8 @@ 

api/sensordefinition PATCH

Example request:

-
curl -X PUT "https://test.beep.nl/api/sensordefinition/1" 
-
const url = new URL("https://test.beep.nl/api/sensordefinition/1");
+
curl -X PUT "https://api.beep.nl/api/sensordefinition/1" 
+
const url = new URL("https://api.beep.nl/api/sensordefinition/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4828,8 +5309,8 @@ 

api/sensordefinition DELETE

Example request:

-
curl -X DELETE "https://test.beep.nl/api/sensordefinition/1" 
-
const url = new URL("https://test.beep.nl/api/sensordefinition/1");
+
curl -X DELETE "https://api.beep.nl/api/sensordefinition/1" 
+
const url = new URL("https://api.beep.nl/api/sensordefinition/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4851,8 +5332,8 @@ 

api/settings

Example request:

-
curl -X POST "https://test.beep.nl/api/settings" 
-
const url = new URL("https://test.beep.nl/api/settings");
+
curl -X POST "https://api.beep.nl/api/settings" 
+
const url = new URL("https://api.beep.nl/api/settings");
 
 let headers = {
     "Accept": "application/json",
@@ -4873,8 +5354,8 @@ 

api/settings

Example request:

-
curl -X GET -G "https://test.beep.nl/api/settings" 
-
const url = new URL("https://test.beep.nl/api/settings");
+
curl -X GET -G "https://api.beep.nl/api/settings" 
+
const url = new URL("https://api.beep.nl/api/settings");
 
 let headers = {
     "Accept": "application/json",
@@ -4902,8 +5383,8 @@ 

api/taxonomy/lists

Example request:

-
curl -X GET -G "https://test.beep.nl/api/taxonomy/lists" 
-
const url = new URL("https://test.beep.nl/api/taxonomy/lists");
+
curl -X GET -G "https://api.beep.nl/api/taxonomy/lists" 
+
const url = new URL("https://api.beep.nl/api/taxonomy/lists");
 
 let headers = {
     "Accept": "application/json",
@@ -4930,8 +5411,8 @@ 

api/taxonomy/taxonomy

Example request:

-
curl -X GET -G "https://test.beep.nl/api/taxonomy/taxonomy" 
-
const url = new URL("https://test.beep.nl/api/taxonomy/taxonomy");
+
curl -X GET -G "https://api.beep.nl/api/taxonomy/taxonomy" 
+
const url = new URL("https://api.beep.nl/api/taxonomy/taxonomy");
 
 let headers = {
     "Accept": "application/json",
@@ -4961,11 +5442,11 @@ 

api/register

Example request:

-
curl -X POST "https://test.beep.nl/api/register" \
+
curl -X POST "https://api.beep.nl/api/register" \
     -H "Content-Type: application/json" \
     -d '{"email":"test@test.com","password":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}'
 
-
const url = new URL("https://test.beep.nl/api/register");
+
const url = new URL("https://api.beep.nl/api/register");
 
 let headers = {
     "Content-Type": "application/json",
@@ -5025,11 +5506,11 @@ 

api/login

Example request:

-
curl -X POST "https://test.beep.nl/api/login" \
+
curl -X POST "https://api.beep.nl/api/login" \
     -H "Content-Type: application/json" \
     -d '{"email":"test@test.com","password":"testtest"}'
 
-
const url = new URL("https://test.beep.nl/api/login");
+
const url = new URL("https://api.beep.nl/api/login");
 
 let headers = {
     "Content-Type": "application/json",
@@ -5098,11 +5579,11 @@ 

api/user/reminder

Example request:

-
curl -X POST "https://test.beep.nl/api/user/reminder" \
+
curl -X POST "https://api.beep.nl/api/user/reminder" \
     -H "Content-Type: application/json" \
     -d '{"email":"test@test.com"}'
 
-
const url = new URL("https://test.beep.nl/api/user/reminder");
+
const url = new URL("https://api.beep.nl/api/user/reminder");
 
 let headers = {
     "Content-Type": "application/json",
@@ -5155,11 +5636,11 @@ 

api/user/reset

Example request:

-
curl -X POST "https://test.beep.nl/api/user/reset" \
+
curl -X POST "https://api.beep.nl/api/user/reset" \
     -H "Content-Type: application/json" \
     -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","token":"z8iQafmgP1"}'
 
-
const url = new URL("https://test.beep.nl/api/user/reset");
+
const url = new URL("https://api.beep.nl/api/user/reset");
 
 let headers = {
     "Content-Type": "application/json",
@@ -5228,8 +5709,8 @@ 

api/authenticate

Example request:

-
curl -X POST "https://test.beep.nl/api/authenticate" 
-
const url = new URL("https://test.beep.nl/api/authenticate");
+
curl -X POST "https://api.beep.nl/api/authenticate" 
+
const url = new URL("https://api.beep.nl/api/authenticate");
 
 let headers = {
     "Accept": "application/json",
@@ -5267,8 +5748,8 @@ 

api/user DELETE

Example request:

-
curl -X DELETE "https://test.beep.nl/api/user" 
-
const url = new URL("https://test.beep.nl/api/user");
+
curl -X DELETE "https://api.beep.nl/api/user" 
+
const url = new URL("https://api.beep.nl/api/user");
 
 let headers = {
     "Accept": "application/json",
@@ -5291,11 +5772,11 @@ 

api/user PATCH

Example request:

-
curl -X PATCH "https://test.beep.nl/api/user" \
+
curl -X PATCH "https://api.beep.nl/api/user" \
     -H "Content-Type: application/json" \
     -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}'
 
-
const url = new URL("https://test.beep.nl/api/user");
+
const url = new URL("https://api.beep.nl/api/user");
 
 let headers = {
     "Content-Type": "application/json",
@@ -5363,8 +5844,8 @@ 

Show the email verification notice.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/email/verify" 
-
const url = new URL("https://test.beep.nl/api/email/verify");
+
curl -X GET -G "https://api.beep.nl/api/email/verify" 
+
const url = new URL("https://api.beep.nl/api/email/verify");
 
 let headers = {
     "Accept": "application/json",
@@ -5389,8 +5870,8 @@ 

Mark the authenticated user's email address as verified.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/email/verify/1" 
-
const url = new URL("https://test.beep.nl/api/email/verify/1");
+
curl -X GET -G "https://api.beep.nl/api/email/verify/1" 
+
const url = new URL("https://api.beep.nl/api/email/verify/1");
 
 let headers = {
     "Accept": "application/json",
@@ -5417,8 +5898,8 @@ 

Resend the email verification notification.

Example request:

-
curl -X POST "https://test.beep.nl/api/email/resend" 
-
const url = new URL("https://test.beep.nl/api/email/resend");
+
curl -X POST "https://api.beep.nl/api/email/resend" 
+
const url = new URL("https://api.beep.nl/api/email/resend");
 
 let headers = {
     "Accept": "application/json",
@@ -5440,8 +5921,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/weather" 
-
const url = new URL("https://test.beep.nl/api/weather");
+
curl -X GET -G "https://api.beep.nl/api/weather" 
+
const url = new URL("https://api.beep.nl/api/weather");
 
 let headers = {
     "Accept": "application/json",
@@ -5468,8 +5949,8 @@ 

Display a listing of the resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/samplecode" 
-
const url = new URL("https://test.beep.nl/api/samplecode");
+
curl -X GET -G "https://api.beep.nl/api/samplecode" 
+
const url = new URL("https://api.beep.nl/api/samplecode");
 
 let headers = {
     "Accept": "application/json",
@@ -5496,8 +5977,8 @@ 

Store a newly created resource in storage.

Example request:

-
curl -X POST "https://test.beep.nl/api/samplecode" 
-
const url = new URL("https://test.beep.nl/api/samplecode");
+
curl -X POST "https://api.beep.nl/api/samplecode" 
+
const url = new URL("https://api.beep.nl/api/samplecode");
 
 let headers = {
     "Accept": "application/json",
@@ -5518,8 +5999,8 @@ 

Display the specified resource.

Example request:

-
curl -X GET -G "https://test.beep.nl/api/samplecode/1" 
-
const url = new URL("https://test.beep.nl/api/samplecode/1");
+
curl -X GET -G "https://api.beep.nl/api/samplecode/1" 
+
const url = new URL("https://api.beep.nl/api/samplecode/1");
 
 let headers = {
     "Accept": "application/json",
@@ -5546,8 +6027,8 @@ 

Update the specified resource in storage.

Example request:

-
curl -X PUT "https://test.beep.nl/api/samplecode/1" 
-
const url = new URL("https://test.beep.nl/api/samplecode/1");
+
curl -X PUT "https://api.beep.nl/api/samplecode/1" 
+
const url = new URL("https://api.beep.nl/api/samplecode/1");
 
 let headers = {
     "Accept": "application/json",
@@ -5569,8 +6050,8 @@ 

Remove the specified resource from storage.

Example request:

-
curl -X DELETE "https://test.beep.nl/api/samplecode" 
-
const url = new URL("https://test.beep.nl/api/samplecode");
+
curl -X DELETE "https://api.beep.nl/api/samplecode" 
+
const url = new URL("https://api.beep.nl/api/samplecode");
 
 let headers = {
     "Accept": "application/json",
diff --git a/public/docs/source/.compare.md b/public/docs/source/.compare.md
index a1ee42cd..a70eb622 100644
--- a/public/docs/source/.compare.md
+++ b/public/docs/source/.compare.md
@@ -16,7 +16,7 @@ toc_footers:
 # Info
 
 Welcome to the generated API reference.
-[Get Postman Collection](http://test.beep.nl/docs/collection.json)
+[Get Postman Collection](http://api.beep.nl/docs/collection.json)
 
 
 
@@ -32,11 +32,11 @@ Display a listing of the inspection categories.
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/categories" 
+curl -X GET -G "https://api.beep.nl/api/categories" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/categories");
+const url = new URL("https://api.beep.nl/api/categories");
 
 let headers = {
     "Accept": "application/json",
@@ -1506,11 +1506,11 @@ Display the specified category.
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/categories/1" 
+curl -X GET -G "https://api.beep.nl/api/categories/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/categories/1");
+const url = new URL("https://api.beep.nl/api/categories/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1549,11 +1549,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/checklists" 
+curl -X GET -G "https://api.beep.nl/api/checklists" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/checklists");
+const url = new URL("https://api.beep.nl/api/checklists");
 
 let headers = {
     "Accept": "application/json",
@@ -1588,11 +1588,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/checklists" 
+curl -X POST "https://api.beep.nl/api/checklists" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/checklists");
+const url = new URL("https://api.beep.nl/api/checklists");
 
 let headers = {
     "Accept": "application/json",
@@ -1620,11 +1620,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/checklists/1" 
+curl -X GET -G "https://api.beep.nl/api/checklists/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/checklists/1");
+const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1659,11 +1659,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/checklists/1" 
+curl -X PUT "https://api.beep.nl/api/checklists/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/checklists/1");
+const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1693,11 +1693,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/checklists/1" 
+curl -X DELETE "https://api.beep.nl/api/checklists/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/checklists/1");
+const url = new URL("https://api.beep.nl/api/checklists/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1731,14 +1731,14 @@ Store/update multiple Devices in an array of Device objects
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/devices/multiple" \
+curl -X POST "https://api.beep.nl/api/devices/multiple" \
     -H "Content-Type: application/json" \
-    -d '{"id":15,"key":"ipsum","hardware_id":"soluta","name":"eaque","hive_id":16,"type":"pariatur","last_message_received":"corrupti","firmware_version":"voluptatem","hardware_version":"nihil","boot_count":5,"measurement_interval_min":10277.20748579,"measurement_transmission_ratio":23.812,"ble_pin":"explicabo","battery_voltage":469,"next_downlink_message":"atque","last_downlink_result":"animi"}'
+    -d '{"id":1,"key":"necessitatibus","hardware_id":"sit","name":"alias","hive_id":14,"type":"doloribus","last_message_received":"incidunt","firmware_version":"quis","hardware_version":"ex","boot_count":8,"measurement_interval_min":0,"measurement_transmission_ratio":6274348.332087,"ble_pin":"aut","battery_voltage":221881238,"next_downlink_message":"dolore","last_downlink_result":"exercitationem"}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices/multiple");
+const url = new URL("https://api.beep.nl/api/devices/multiple");
 
 let headers = {
     "Content-Type": "application/json",
@@ -1746,22 +1746,22 @@ let headers = {
 }
 
 let body = {
-    "id": 15,
-    "key": "ipsum",
-    "hardware_id": "soluta",
-    "name": "eaque",
-    "hive_id": 16,
-    "type": "pariatur",
-    "last_message_received": "corrupti",
-    "firmware_version": "voluptatem",
-    "hardware_version": "nihil",
-    "boot_count": 5,
-    "measurement_interval_min": 10277.20748579,
-    "measurement_transmission_ratio": 23.812,
-    "ble_pin": "explicabo",
-    "battery_voltage": 469,
-    "next_downlink_message": "atque",
-    "last_downlink_result": "animi"
+    "id": 1,
+    "key": "necessitatibus",
+    "hardware_id": "sit",
+    "name": "alias",
+    "hive_id": 14,
+    "type": "doloribus",
+    "last_message_received": "incidunt",
+    "firmware_version": "quis",
+    "hardware_version": "ex",
+    "boot_count": 8,
+    "measurement_interval_min": 0,
+    "measurement_transmission_ratio": 6274348.332087,
+    "ble_pin": "aut",
+    "battery_voltage": 221881238,
+    "next_downlink_message": "dolore",
+    "last_downlink_result": "exercitationem"
 }
 
 fetch(url, {
@@ -1809,11 +1809,11 @@ Get a TTN Device by Device ID (BEEP hardware_id)
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/devices/ttn/1" 
+curl -X GET -G "https://api.beep.nl/api/devices/ttn/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices/ttn/1");
+const url = new URL("https://api.beep.nl/api/devices/ttn/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1857,11 +1857,11 @@ Create an OTAA LoRaWAN Device in the BEEP TTN Console by dev_id (dev_id (= BEEP
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/devices/ttn/1" 
+curl -X POST "https://api.beep.nl/api/devices/ttn/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices/ttn/1");
+const url = new URL("https://api.beep.nl/api/devices/ttn/1");
 
 let headers = {
     "Accept": "application/json",
@@ -1892,14 +1892,14 @@ List all user Devices
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/devices" \
+curl -X GET -G "https://api.beep.nl/api/devices" \
     -H "Content-Type: application/json" \
-    -d '{"hardware_id":"voluptas"}'
+    -d '{"hardware_id":"similique"}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices");
+const url = new URL("https://api.beep.nl/api/devices");
 
 let headers = {
     "Content-Type": "application/json",
@@ -1907,7 +1907,7 @@ let headers = {
 }
 
 let body = {
-    "hardware_id": "voluptas"
+    "hardware_id": "similique"
 }
 
 fetch(url, {
@@ -1989,14 +1989,14 @@ Create or Update a Device
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/devices" \
+curl -X POST "https://api.beep.nl/api/devices" \
     -H "Content-Type: application/json" \
-    -d '{"id":20,"key":"in","hardware_id":"debitis","name":"nihil","hive_id":3,"type":"dignissimos","last_message_received":"mollitia","firmware_version":"incidunt","hardware_version":"voluptatibus","boot_count":10,"measurement_interval_min":390,"measurement_transmission_ratio":1.4775683,"ble_pin":"sed","battery_voltage":43592823.35,"next_downlink_message":"ab","last_downlink_result":"tenetur","create_ttn_device":false,"app_key":"autem"}'
+    -d '{"id":16,"key":"ab","hardware_id":"laudantium","name":"nostrum","hive_id":4,"type":"eum","last_message_received":"modi","firmware_version":"illum","hardware_version":"sed","boot_count":16,"measurement_interval_min":218.343005352,"measurement_transmission_ratio":13228.3832504,"ble_pin":"minus","battery_voltage":306.848,"next_downlink_message":"eveniet","last_downlink_result":"soluta","create_ttn_device":true,"app_key":"numquam"}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices");
+const url = new URL("https://api.beep.nl/api/devices");
 
 let headers = {
     "Content-Type": "application/json",
@@ -2004,24 +2004,24 @@ let headers = {
 }
 
 let body = {
-    "id": 20,
-    "key": "in",
-    "hardware_id": "debitis",
-    "name": "nihil",
-    "hive_id": 3,
-    "type": "dignissimos",
-    "last_message_received": "mollitia",
-    "firmware_version": "incidunt",
-    "hardware_version": "voluptatibus",
-    "boot_count": 10,
-    "measurement_interval_min": 390,
-    "measurement_transmission_ratio": 1.4775683,
-    "ble_pin": "sed",
-    "battery_voltage": 43592823.35,
-    "next_downlink_message": "ab",
-    "last_downlink_result": "tenetur",
-    "create_ttn_device": false,
-    "app_key": "autem"
+    "id": 16,
+    "key": "ab",
+    "hardware_id": "laudantium",
+    "name": "nostrum",
+    "hive_id": 4,
+    "type": "eum",
+    "last_message_received": "modi",
+    "firmware_version": "illum",
+    "hardware_version": "sed",
+    "boot_count": 16,
+    "measurement_interval_min": 218.343005352,
+    "measurement_transmission_ratio": 13228.3832504,
+    "ble_pin": "minus",
+    "battery_voltage": 306.848,
+    "next_downlink_message": "eveniet",
+    "last_downlink_result": "soluta",
+    "create_ttn_device": true,
+    "app_key": "numquam"
 }
 
 fetch(url, {
@@ -2071,11 +2071,11 @@ List one Device by id
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/devices/1" 
+curl -X GET -G "https://api.beep.nl/api/devices/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices/1");
+const url = new URL("https://api.beep.nl/api/devices/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2113,14 +2113,14 @@ Update an existing Device
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/devices/1" \
+curl -X PUT "https://api.beep.nl/api/devices/1" \
     -H "Content-Type: application/json" \
-    -d '{"id":7,"key":"eligendi","hardware_id":"repellendus","name":"et","hive_id":3,"type":"reiciendis","delete":false,"last_message_received":"aliquam","firmware_version":"necessitatibus","hardware_version":"aut","boot_count":9,"measurement_interval_min":30.27043,"measurement_transmission_ratio":25.64,"ble_pin":"quisquam","battery_voltage":198.9654075,"next_downlink_message":"consequatur","last_downlink_result":"molestiae"}'
+    -d '{"id":20,"key":"praesentium","hardware_id":"eveniet","name":"quia","hive_id":7,"type":"laudantium","delete":true,"last_message_received":"quibusdam","firmware_version":"ipsum","hardware_version":"nostrum","boot_count":15,"measurement_interval_min":3998.31519,"measurement_transmission_ratio":35.514,"ble_pin":"consequatur","battery_voltage":591377700,"next_downlink_message":"error","last_downlink_result":"ipsum"}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/devices/1");
+const url = new URL("https://api.beep.nl/api/devices/1");
 
 let headers = {
     "Content-Type": "application/json",
@@ -2128,23 +2128,23 @@ let headers = {
 }
 
 let body = {
-    "id": 7,
-    "key": "eligendi",
-    "hardware_id": "repellendus",
-    "name": "et",
-    "hive_id": 3,
-    "type": "reiciendis",
-    "delete": false,
-    "last_message_received": "aliquam",
-    "firmware_version": "necessitatibus",
-    "hardware_version": "aut",
-    "boot_count": 9,
-    "measurement_interval_min": 30.27043,
-    "measurement_transmission_ratio": 25.64,
-    "ble_pin": "quisquam",
-    "battery_voltage": 198.9654075,
-    "next_downlink_message": "consequatur",
-    "last_downlink_result": "molestiae"
+    "id": 20,
+    "key": "praesentium",
+    "hardware_id": "eveniet",
+    "name": "quia",
+    "hive_id": 7,
+    "type": "laudantium",
+    "delete": true,
+    "last_message_received": "quibusdam",
+    "firmware_version": "ipsum",
+    "hardware_version": "nostrum",
+    "boot_count": 15,
+    "measurement_interval_min": 3998.31519,
+    "measurement_transmission_ratio": 35.514,
+    "ble_pin": "consequatur",
+    "battery_voltage": 591377700,
+    "next_downlink_message": "error",
+    "last_downlink_result": "ipsum"
 }
 
 fetch(url, {
@@ -2195,11 +2195,11 @@ Export all data to an Excel file by email (GDPR)
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/export" 
+curl -X GET -G "https://api.beep.nl/api/export" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/export");
+const url = new URL("https://api.beep.nl/api/export");
 
 let headers = {
     "Accept": "application/json",
@@ -2234,11 +2234,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/export/csv" 
+curl -X POST "https://api.beep.nl/api/export/csv" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/export/csv");
+const url = new URL("https://api.beep.nl/api/export/csv");
 
 let headers = {
     "Accept": "application/json",
@@ -2269,11 +2269,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/groups/checktoken" 
+curl -X POST "https://api.beep.nl/api/groups/checktoken" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups/checktoken");
+const url = new URL("https://api.beep.nl/api/groups/checktoken");
 
 let headers = {
     "Accept": "application/json",
@@ -2301,11 +2301,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/groups" 
+curl -X GET -G "https://api.beep.nl/api/groups" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups");
+const url = new URL("https://api.beep.nl/api/groups");
 
 let headers = {
     "Accept": "application/json",
@@ -2340,11 +2340,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/groups" 
+curl -X POST "https://api.beep.nl/api/groups" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups");
+const url = new URL("https://api.beep.nl/api/groups");
 
 let headers = {
     "Accept": "application/json",
@@ -2372,11 +2372,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/groups/1" 
+curl -X GET -G "https://api.beep.nl/api/groups/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups/1");
+const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2411,11 +2411,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/groups/1" 
+curl -X PUT "https://api.beep.nl/api/groups/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups/1");
+const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2445,11 +2445,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/groups/1" 
+curl -X DELETE "https://api.beep.nl/api/groups/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups/1");
+const url = new URL("https://api.beep.nl/api/groups/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2477,11 +2477,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/groups/detach/1" 
+curl -X DELETE "https://api.beep.nl/api/groups/detach/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/groups/detach/1");
+const url = new URL("https://api.beep.nl/api/groups/detach/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2515,11 +2515,11 @@ Display a listing of user hives.
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/hives" 
+curl -X GET -G "https://api.beep.nl/api/hives" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/hives");
+const url = new URL("https://api.beep.nl/api/hives");
 
 let headers = {
     "Accept": "application/json",
@@ -2609,11 +2609,11 @@ Store a newly created Hive in storage for the authenticated user.
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/hives" 
+curl -X POST "https://api.beep.nl/api/hives" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/hives");
+const url = new URL("https://api.beep.nl/api/hives");
 
 let headers = {
     "Accept": "application/json",
@@ -2644,11 +2644,11 @@ Display the specified resource.
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/hives/1" 
+curl -X GET -G "https://api.beep.nl/api/hives/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/hives/1");
+const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2686,11 +2686,11 @@ Update the specified user Hive in storage.
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/hives/1" 
+curl -X PUT "https://api.beep.nl/api/hives/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/hives/1");
+const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2723,11 +2723,11 @@ Remove the specified user Hive from storage.
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/hives/1" 
+curl -X DELETE "https://api.beep.nl/api/hives/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/hives/1");
+const url = new URL("https://api.beep.nl/api/hives/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2759,11 +2759,11 @@ Store and retreive image metadata (image_url, thumb_url, width, category_id, etc
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/images" 
+curl -X GET -G "https://api.beep.nl/api/images" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/images");
+const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2799,11 +2799,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/images" 
+curl -X POST "https://api.beep.nl/api/images" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/images");
+const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2832,11 +2832,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/images/1" 
+curl -X GET -G "https://api.beep.nl/api/images/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/images/1");
+const url = new URL("https://api.beep.nl/api/images/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2872,11 +2872,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/images/1" 
+curl -X PUT "https://api.beep.nl/api/images/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/images/1");
+const url = new URL("https://api.beep.nl/api/images/1");
 
 let headers = {
     "Accept": "application/json",
@@ -2907,11 +2907,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/images" 
+curl -X DELETE "https://api.beep.nl/api/images" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/images");
+const url = new URL("https://api.beep.nl/api/images");
 
 let headers = {
     "Accept": "application/json",
@@ -2945,11 +2945,11 @@ Show the 'inspections' list with objects reflecting only the general i
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/inspections" 
+curl -X GET -G "https://api.beep.nl/api/inspections" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections");
+const url = new URL("https://api.beep.nl/api/inspections");
 
 let headers = {
     "Accept": "application/json",
@@ -2987,14 +2987,14 @@ List checklists and its  inspections linked to Hive id. The 'inspections�
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/inspections/lists" \
+curl -X GET -G "https://api.beep.nl/api/inspections/lists" \
     -H "Content-Type: application/json" \
-    -d '{"id":9}'
+    -d '{"id":15}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections/lists");
+const url = new URL("https://api.beep.nl/api/inspections/lists");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3002,7 +3002,7 @@ let headers = {
 }
 
 let body = {
-    "id": 9
+    "id": 15
 }
 
 fetch(url, {
@@ -3073,16 +3073,11 @@ Show the 'inspection' object. The object reflects only the general ins
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/inspections/1?id=pariatur" 
+curl -X GET -G "https://api.beep.nl/api/inspections/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections/1");
-
-    let params = {
-            "id": "pariatur",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+const url = new URL("https://api.beep.nl/api/inspections/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3109,11 +3104,6 @@ fetch(url, {
 ### HTTP Request
 `GET api/inspections/{id}`
 
-#### Query Parameters
-
-Parameter | Status | Description
---------- | ------- | ------- | -----------
-    id |  required  | The id of the inspection.
 
 
 
@@ -3125,16 +3115,11 @@ List all inspections linked to Hive id. The 'inspections' object conta
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/inspections/hive/1?hive_id=dolores" 
+curl -X GET -G "https://api.beep.nl/api/inspections/hive/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections/hive/1");
-
-    let params = {
-            "hive_id": "dolores",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+const url = new URL("https://api.beep.nl/api/inspections/hive/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3258,11 +3243,6 @@ fetch(url, {
 ### HTTP Request
 `GET api/inspections/hive/{hive_id}`
 
-#### Query Parameters
-
-Parameter | Status | Description
---------- | ------- | ------- | -----------
-    hive_id |  required  | The hive to request inspections from.
 
 
 
@@ -3274,14 +3254,14 @@ Register a new hive inspection the 'inspection' object. The object ref
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/inspections/store" \
+curl -X POST "https://api.beep.nl/api/inspections/store" \
     -H "Content-Type: application/json" \
     -d '{"date":"2020-05-18 16:16","items":"{\"547\":0,\"595\":1,\"845\":\"814\"}","hive_id":42,"impression":-1,"attention":1,"reminder":"This is an inspection reminder","reminder_date":"2020-05-27 16:16","notes":"This is an inspection note","checklist_id":829}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections/store");
+const url = new URL("https://api.beep.nl/api/inspections/store");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3336,11 +3316,11 @@ Parameter | Type | Status | Description
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/inspections/1" 
+curl -X DELETE "https://api.beep.nl/api/inspections/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/inspections/1");
+const url = new URL("https://api.beep.nl/api/inspections/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3372,11 +3352,11 @@ Manage Apiaries
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/locations" 
+curl -X GET -G "https://api.beep.nl/api/locations" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/locations");
+const url = new URL("https://api.beep.nl/api/locations");
 
 let headers = {
     "Accept": "application/json",
@@ -3412,11 +3392,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/locations" 
+curl -X POST "https://api.beep.nl/api/locations" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/locations");
+const url = new URL("https://api.beep.nl/api/locations");
 
 let headers = {
     "Accept": "application/json",
@@ -3445,11 +3425,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/locations/1" 
+curl -X GET -G "https://api.beep.nl/api/locations/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/locations/1");
+const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3485,11 +3465,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/locations/1" 
+curl -X PUT "https://api.beep.nl/api/locations/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/locations/1");
+const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3520,11 +3500,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/locations/1" 
+curl -X DELETE "https://api.beep.nl/api/locations/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/locations/1");
+const url = new URL("https://api.beep.nl/api/locations/1");
 
 let headers = {
     "Accept": "application/json",
@@ -3557,14 +3537,14 @@ Store sensor measurement data (see BEEP sensor data API definition) from API, or
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/sensors" \
+curl -X POST "https://api.beep.nl/api/sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"dignissimos","data":[],"payload_fields":[]}'
+    -d '{"key":"dicta","data":[],"payload_fields":[]}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors");
+const url = new URL("https://api.beep.nl/api/sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3572,7 +3552,7 @@ let headers = {
 }
 
 let body = {
-    "key": "dignissimos",
+    "key": "dicta",
     "data": [],
     "payload_fields": []
 }
@@ -3610,14 +3590,14 @@ When TTN payload is supplied, the TTN HTTP integration decoder/converter is assu
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/lora_sensors" \
+curl -X POST "https://api.beep.nl/api/lora_sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"facilis","payload_fields":[],"DevEUI_uplink":[]}'
+    -d '{"key":"recusandae","payload_fields":[],"DevEUI_uplink":[]}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/lora_sensors");
+const url = new URL("https://api.beep.nl/api/lora_sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3625,7 +3605,7 @@ let headers = {
 }
 
 let body = {
-    "key": "facilis",
+    "key": "recusandae",
     "payload_fields": [],
     "DevEUI_uplink": []
 }
@@ -3661,14 +3641,14 @@ Store sensor measurement data (see BEEP sensor data API definition) from API, or
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/unsecure_sensors" \
+curl -X POST "https://api.beep.nl/api/unsecure_sensors" \
     -H "Content-Type: application/json" \
-    -d '{"key":"vero","data":[],"payload_fields":[]}'
+    -d '{"key":"id","data":[],"payload_fields":[]}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/unsecure_sensors");
+const url = new URL("https://api.beep.nl/api/unsecure_sensors");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3676,7 +3656,7 @@ let headers = {
 }
 
 let body = {
-    "key": "vero",
+    "key": "id",
     "data": [],
     "payload_fields": []
 }
@@ -3713,14 +3693,14 @@ Request all sensor measurements from a certain interval (hour, day, week, month,
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/sensors/measurements" \
+curl -X GET -G "https://api.beep.nl/api/sensors/measurements" \
     -H "Content-Type: application/json" \
-    -d '{"key":"deserunt","id":5,"hive_id":4,"names":"nobis","interval":"blanditiis","index":16}'
+    -d '{"key":"deserunt","id":1,"hive_id":3,"names":"veritatis","interval":"quae","index":11}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/measurements");
+const url = new URL("https://api.beep.nl/api/sensors/measurements");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3729,11 +3709,11 @@ let headers = {
 
 let body = {
     "key": "deserunt",
-    "id": 5,
-    "hive_id": 4,
-    "names": "nobis",
-    "interval": "blanditiis",
-    "index": 16
+    "id": 1,
+    "hive_id": 3,
+    "names": "veritatis",
+    "interval": "quae",
+    "index": 11
 }
 
 fetch(url, {
@@ -3778,14 +3758,14 @@ Request last measurement values of all sensor measurements from a sensor (Device
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/sensors/lastvalues" \
+curl -X GET -G "https://api.beep.nl/api/sensors/lastvalues" \
     -H "Content-Type: application/json" \
-    -d '{"key":"consectetur","id":5,"hive_id":2}'
+    -d '{"key":"magni","id":20,"hive_id":9}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/lastvalues");
+const url = new URL("https://api.beep.nl/api/sensors/lastvalues");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3793,9 +3773,9 @@ let headers = {
 }
 
 let body = {
-    "key": "consectetur",
-    "id": 5,
-    "hive_id": 2
+    "key": "magni",
+    "id": 20,
+    "hive_id": 9
 }
 
 fetch(url, {
@@ -3837,14 +3817,14 @@ Request last weight related measurement values from a sensor (Device), used by l
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/sensors/lastweight" \
+curl -X GET -G "https://api.beep.nl/api/sensors/lastweight" \
     -H "Content-Type: application/json" \
-    -d '{"key":"numquam","id":3,"hive_id":19}'
+    -d '{"key":"molestiae","id":6,"hive_id":7}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/lastweight");
+const url = new URL("https://api.beep.nl/api/sensors/lastweight");
 
 let headers = {
     "Content-Type": "application/json",
@@ -3852,9 +3832,9 @@ let headers = {
 }
 
 let body = {
-    "key": "numquam",
-    "id": 3,
-    "hive_id": 19
+    "key": "molestiae",
+    "id": 6,
+    "hive_id": 7
 }
 
 fetch(url, {
@@ -3905,11 +3885,11 @@ Because the measurements can come in only each hour/ 3hrs, set a value to trigge
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/sensors/calibrateweight" 
+curl -X POST "https://api.beep.nl/api/sensors/calibrateweight" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/calibrateweight");
+const url = new URL("https://api.beep.nl/api/sensors/calibrateweight");
 
 let headers = {
     "Accept": "application/json",
@@ -3937,11 +3917,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/sensors/offsetweight" 
+curl -X POST "https://api.beep.nl/api/sensors/offsetweight" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/offsetweight");
+const url = new URL("https://api.beep.nl/api/sensors/offsetweight");
 
 let headers = {
     "Accept": "application/json",
@@ -3969,11 +3949,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/sensors/measurement_types_available" 
+curl -X GET -G "https://api.beep.nl/api/sensors/measurement_types_available" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/sensors/measurement_types_available");
+const url = new URL("https://api.beep.nl/api/sensors/measurement_types_available");
 
 let headers = {
     "Accept": "application/json",
@@ -4012,14 +3992,14 @@ When TTN payload is supplied, the TTN HTTP integration decoder/converter is assu
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/lora_sensors_auth" \
+curl -X POST "https://api.beep.nl/api/lora_sensors_auth" \
     -H "Content-Type: application/json" \
-    -d '{"key":"eum","payload_fields":[],"DevEUI_uplink":[]}'
+    -d '{"key":"totam","payload_fields":[],"DevEUI_uplink":[]}'
 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/lora_sensors_auth");
+const url = new URL("https://api.beep.nl/api/lora_sensors_auth");
 
 let headers = {
     "Content-Type": "application/json",
@@ -4027,7 +4007,7 @@ let headers = {
 }
 
 let body = {
-    "key": "eum",
+    "key": "totam",
     "payload_fields": [],
     "DevEUI_uplink": []
 }
@@ -4065,11 +4045,11 @@ Not used
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/productions" 
+curl -X GET -G "https://api.beep.nl/api/productions" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/productions");
+const url = new URL("https://api.beep.nl/api/productions");
 
 let headers = {
     "Accept": "application/json",
@@ -4105,11 +4085,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/productions" 
+curl -X POST "https://api.beep.nl/api/productions" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/productions");
+const url = new URL("https://api.beep.nl/api/productions");
 
 let headers = {
     "Accept": "application/json",
@@ -4138,11 +4118,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/productions/1" 
+curl -X GET -G "https://api.beep.nl/api/productions/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/productions/1");
+const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4178,11 +4158,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/productions/1" 
+curl -X PUT "https://api.beep.nl/api/productions/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/productions/1");
+const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4213,11 +4193,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/productions/1" 
+curl -X DELETE "https://api.beep.nl/api/productions/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/productions/1");
+const url = new URL("https://api.beep.nl/api/productions/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4249,11 +4229,11 @@ Not used
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/queens" 
+curl -X GET -G "https://api.beep.nl/api/queens" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/queens");
+const url = new URL("https://api.beep.nl/api/queens");
 
 let headers = {
     "Accept": "application/json",
@@ -4289,11 +4269,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/queens" 
+curl -X POST "https://api.beep.nl/api/queens" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/queens");
+const url = new URL("https://api.beep.nl/api/queens");
 
 let headers = {
     "Accept": "application/json",
@@ -4322,11 +4302,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/queens/1" 
+curl -X GET -G "https://api.beep.nl/api/queens/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/queens/1");
+const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4362,11 +4342,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PUT "https://test.beep.nl/api/queens/1" 
+curl -X PUT "https://api.beep.nl/api/queens/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/queens/1");
+const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4397,11 +4377,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/queens/1" 
+curl -X DELETE "https://api.beep.nl/api/queens/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/queens/1");
+const url = new URL("https://api.beep.nl/api/queens/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4433,11 +4413,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/research" 
+curl -X GET -G "https://api.beep.nl/api/research" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/research");
+const url = new URL("https://api.beep.nl/api/research");
 
 let headers = {
     "Accept": "application/json",
@@ -4473,11 +4453,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/research/1/add_consent" 
+curl -X POST "https://api.beep.nl/api/research/1/add_consent" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/research/1/add_consent");
+const url = new URL("https://api.beep.nl/api/research/1/add_consent");
 
 let headers = {
     "Accept": "application/json",
@@ -4505,11 +4485,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X POST "https://test.beep.nl/api/research/1/remove_consent" 
+curl -X POST "https://api.beep.nl/api/research/1/remove_consent" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/research/1/remove_consent");
+const url = new URL("https://api.beep.nl/api/research/1/remove_consent");
 
 let headers = {
     "Accept": "application/json",
@@ -4537,11 +4517,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X PATCH "https://test.beep.nl/api/research/1/edit/1" 
+curl -X PATCH "https://api.beep.nl/api/research/1/edit/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/research/1/edit/1");
+const url = new URL("https://api.beep.nl/api/research/1/edit/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4569,11 +4549,11 @@ fetch(url, {
 > Example request:
 
 ```bash
-curl -X DELETE "https://test.beep.nl/api/research/1/delete/1" 
+curl -X DELETE "https://api.beep.nl/api/research/1/delete/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/research/1/delete/1");
+const url = new URL("https://api.beep.nl/api/research/1/delete/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4607,11 +4587,11 @@ List all available Researches
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/researchdata" 
+curl -X GET -G "https://api.beep.nl/api/researchdata" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/researchdata");
+const url = new URL("https://api.beep.nl/api/researchdata");
 
 let headers = {
     "Accept": "application/json",
@@ -4627,6 +4607,87 @@ fetch(url, {
 ```
 
 
+> Example response (200):
+
+```json
+[
+    {
+        "id": 1,
+        "created_at": "2020-02-25 03:01:57",
+        "updated_at": "2020-11-13 17:08:31",
+        "name": "B-GOOD",
+        "url": "https:\/\/b-good-project.eu\/",
+        "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+        "type": "research-b-good",
+        "institution": "Wageningen University & Research",
+        "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data",
+        "start_date": "2019-07-01 00:00:00",
+        "end_date": "2023-06-30 00:00:00",
+        "image_id": 1,
+        "consent": true,
+        "consent_history": [
+            {
+                "id": 185,
+                "created_at": "2020-11-12 22:28:09",
+                "updated_at": "2020-06-12 22:28:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 1,
+                "created_at": "2020-02-25 03:02:23",
+                "updated_at": "2020-05-27 03:03:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 0,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 97,
+                "created_at": "2020-05-14 16:24:41",
+                "updated_at": "2020-03-14 16:24:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            }
+        ],
+        "checklist_names": [
+            "1 Winter",
+            "2 Varroa",
+            "3 Summer+",
+            "4 Summer",
+            "5 Health"
+        ],
+        "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+        "image": {
+            "id": 1,
+            "created_at": "2020-02-25 03:01:57",
+            "updated_at": "2020-02-25 03:01:57",
+            "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+            "type": "research",
+            "height": 1271,
+            "width": 1271,
+            "size_kb": 51,
+            "date": "2020-02-25 03:01:57",
+            "hive_id": null,
+            "category_id": null,
+            "inspection_id": null
+        }
+    }
+]
+```
 > Example response (401):
 
 ```json
@@ -4649,16 +4710,11 @@ List one Research by id with list of consent_users
 > Example request:
 
 ```bash
-curl -X GET -G "https://test.beep.nl/api/researchdata/1?id=consequatur" 
+curl -X GET -G "https://api.beep.nl/api/researchdata/1" 
 ```
 
 ```javascript
-const url = new URL("https://test.beep.nl/api/researchdata/1");
-
-    let params = {
-            "id": "consequatur",
-        };
-    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
+const url = new URL("https://api.beep.nl/api/researchdata/1");
 
 let headers = {
     "Accept": "application/json",
@@ -4674,6 +4730,119 @@ fetch(url, {
 ```
 
 
+> Example response (200):
+
+```json
+{
+    "research": {
+        "id": 1,
+        "created_at": "2020-02-25 03:01:57",
+        "updated_at": "2020-11-18 10:33:23",
+        "name": "B-GOOD",
+        "url": "https:\/\/b-good-project.eu\/",
+        "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+        "type": "research-b-good",
+        "institution": "Wageningen University & Research",
+        "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data",
+        "start_date": "2019-07-01 00:00:00",
+        "end_date": "2023-06-30 00:00:00",
+        "image_id": 1,
+        "consent": true,
+        "consent_history": [
+            {
+                "id": 185,
+                "created_at": "2020-11-12 22:28:09",
+                "updated_at": "2020-06-12 22:28:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 1,
+                "created_at": "2020-02-25 03:02:23",
+                "updated_at": "2020-05-27 03:03:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 0,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            },
+            {
+                "id": 97,
+                "created_at": "2020-05-14 16:24:41",
+                "updated_at": "2020-03-14 16:24:00",
+                "user_id": 1,
+                "research_id": 1,
+                "consent": 1,
+                "consent_location_ids": null,
+                "consent_hive_ids": null,
+                "consent_sensor_ids": null
+            }
+        ],
+        "checklist_names": [
+            "1 Winter",
+            "2 Varroa",
+            "3 Summer+",
+            "4 Summer",
+            "5 Health"
+        ],
+        "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+        "image": {
+            "id": 1,
+            "created_at": "2020-02-25 03:01:57",
+            "updated_at": "2020-02-25 03:01:57",
+            "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg",
+            "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.",
+            "type": "research",
+            "height": 1271,
+            "width": 1271,
+            "size_kb": 51,
+            "date": "2020-02-25 03:01:57",
+            "hive_id": null,
+            "category_id": null,
+            "inspection_id": null
+        }
+    },
+    "consent_users": [
+        {
+            "id": 1,
+            "name": "Beep",
+            "email": "pim@beep.nl",
+            "created_at": "2017-07-14 03:34:10",
+            "updated_at": "2020-05-27 03:03:00",
+            "last_login": "2020-11-18 10:32:16",
+            "locale": null,
+            "consent": 0
+        },
+        {
+            "id": 2371,
+            "name": "app@beep.nl",
+            "email": "app@beep.nl",
+            "created_at": "2019-10-24 17:15:55",
+            "updated_at": "2020-02-25 11:46:59",
+            "last_login": "2020-08-20 18:24:22",
+            "locale": null,
+            "consent": 0
+        },
+        {
+            "id": 1,
+            "name": "Beep",
+            "email": "pim@beep.nl",
+            "created_at": "2017-07-14 03:34:10",
+            "updated_at": "2020-06-12 22:28:00",
+            "last_login": "2020-11-18 10:32:16",
+            "locale": null,
+            "consent": 1
+        }
+    ]
+}
+```
 > Example response (401):
 
 ```json
@@ -4685,37 +4854,25 @@ fetch(url, {
 ### HTTP Request
 `GET api/researchdata/{id}`
 
-#### Query Parameters
-
-Parameter | Status | Description
---------- | ------- | ------- | -----------
-    id |  required  | The research ID to request data from.
 
 
 
 
 ## api/researchdata/{id}/user/{user_id}/{item} GET
-List all user 'item' data within the consent=1 periods of a specific user within a Research.
+List all user 'item' data within the consent=1 periods of a specific user within a Research. The 'item' field indicates the type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). Example: inspectionsResponse: api/researchdata/1/user/1/inspections.
 
 
Requires authentication > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/researchdata/1/user/1/1?id=voluptates&user_id=porro&item=amet" \ +curl -X GET -G "https://api.beep.nl/api/researchdata/1/user/1/1" \ -H "Content-Type: application/json" \ - -d '{"date_start":"suscipit","date_until":"sed"}' + -d '{"date_start":"2020-01-01 00:00:00","date_until":"2020-09-29 23:59:59"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/researchdata/1/user/1/1"); - - let params = { - "id": "voluptates", - "user_id": "porro", - "item": "amet", - }; - Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); +const url = new URL("https://api.beep.nl/api/researchdata/1/user/1/1"); let headers = { "Content-Type": "application/json", @@ -4723,8 +4880,8 @@ let headers = { } let body = { - "date_start": "suscipit", - "date_until": "sed" + "date_start": "2020-01-01 00:00:00", + "date_until": "2020-09-29 23:59:59" } fetch(url, { @@ -4737,6 +4894,396 @@ fetch(url, { ``` +> Example response (200): + +```json +[ + { + "id": 35211, + "notes": "test", + "reminder": null, + "reminder_date": null, + "impression": 2, + "attention": 1, + "created_at": "2020-03-26 18:28:00", + "checklist_id": 798, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [] + }, + { + "id": 40162, + "notes": "Input Liebefeld", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:03:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326538, + "value": "0.6", + "inspection_id": 40162, + "category_id": 977, + "val": "0.6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326539, + "value": "4", + "inspection_id": 40162, + "category_id": 978, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326540, + "value": "2", + "inspection_id": 40162, + "category_id": 979, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326541, + "value": "4", + "inspection_id": 40162, + "category_id": 980, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326542, + "value": "3", + "inspection_id": 40162, + "category_id": 981, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326543, + "value": "581", + "inspection_id": 40162, + "category_id": 982, + "val": "581", + "unit": "bzz", + "type": "number_positive" + }, + { + "id": 326544, + "value": "5", + "inspection_id": 40162, + "category_id": 984, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326545, + "value": "1", + "inspection_id": 40162, + "category_id": 985, + "val": "1", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326546, + "value": "4", + "inspection_id": 40162, + "category_id": 987, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326547, + "value": "5", + "inspection_id": 40162, + "category_id": 988, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326548, + "value": "4", + "inspection_id": 40162, + "category_id": 989, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326549, + "value": "2", + "inspection_id": 40162, + "category_id": 990, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326550, + "value": "2", + "inspection_id": 40162, + "category_id": 991, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326551, + "value": "3", + "inspection_id": 40162, + "category_id": 992, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326552, + "value": "3", + "inspection_id": 40162, + "category_id": 993, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326553, + "value": "6", + "inspection_id": 40162, + "category_id": 995, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326554, + "value": "2", + "inspection_id": 40162, + "category_id": 996, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326555, + "value": "2", + "inspection_id": 40162, + "category_id": 997, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326556, + "value": "2", + "inspection_id": 40162, + "category_id": 998, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326557, + "value": "2", + "inspection_id": 40162, + "category_id": 999, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326558, + "value": "2", + "inspection_id": 40162, + "category_id": 1000, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326559, + "value": "2", + "inspection_id": 40162, + "category_id": 1001, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326560, + "value": "8", + "inspection_id": 40162, + "category_id": 1163, + "val": "8", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326561, + "value": "4", + "inspection_id": 40162, + "category_id": 1164, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326562, + "value": "2", + "inspection_id": 40162, + "category_id": 1165, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326563, + "value": "6", + "inspection_id": 40162, + "category_id": 1166, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326564, + "value": "2", + "inspection_id": 40162, + "category_id": 1167, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326565, + "value": "2", + "inspection_id": 40162, + "category_id": 1168, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326566, + "value": "3", + "inspection_id": 40162, + "category_id": 1169, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + } + ] + }, + { + "id": 40163, + "notes": "Brood photograph", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:07:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326567, + "value": "1", + "inspection_id": 40163, + "category_id": 399, + "val": "Ja", + "unit": null, + "type": "boolean" + }, + { + "id": 326568, + "value": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "inspection_id": 40163, + "category_id": 973, + "val": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "unit": null, + "type": "image" + } + ] + }, + { + "id": 68477, + "notes": null, + "reminder": null, + "reminder_date": null, + "impression": 3, + "attention": 1, + "created_at": "2020-10-23 12:43:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [] + }, + { + "id": 68478, + "notes": "Hive change", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-10-23 13:12:33", + "checklist_id": null, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [ + { + "id": 522496, + "value": "2", + "inspection_id": 68478, + "category_id": 85, + "val": "2", + "unit": null, + "type": "number_positive" + }, + { + "id": 522497, + "value": "2", + "inspection_id": 68478, + "category_id": 87, + "val": "2", + "unit": null, + "type": "number" + }, + { + "id": 522498, + "value": "10", + "inspection_id": 68478, + "category_id": 89, + "val": "10", + "unit": null, + "type": "number_positive" + } + ] + } +] +``` > Example response (401): ```json @@ -4754,13 +5301,6 @@ Parameter | Type | Status | Description --------- | ------- | ------- | ------- | ----------- date_start | datetime | optional | The date in 'YYYY-MM-DD HH:mm:ss' format (2020-01-01 00:00:00) to request data from (default is beginning of research, or earlier (except inspections and measurements). date_until | datetime | optional | The date in 'YYYY-MM-DD HH:mm:ss' format (2020-09-29 23:59:59) to request data until (default is until the end of the user consent, or research end). -#### Query Parameters - -Parameter | Status | Description ---------- | ------- | ------- | ----------- - id | required | The research ID to request data from. - user_id | required | The user id to request data from. - item | required | The type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). @@ -4775,14 +5315,14 @@ Display a listing of the resource. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensordefinition" \ +curl -X GET -G "https://api.beep.nl/api/sensordefinition" \ -H "Content-Type: application/json" \ - -d '{"device_id":12,"device_hardware_id":"maiores","input_measurement_abbreviation":"incidunt","limit":20}' + -d '{"device_id":8,"device_hardware_id":"hic","input_measurement_abbreviation":"non","limit":14}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition"); +const url = new URL("https://api.beep.nl/api/sensordefinition"); let headers = { "Content-Type": "application/json", @@ -4790,10 +5330,10 @@ let headers = { } let body = { - "device_id": 12, - "device_hardware_id": "maiores", - "input_measurement_abbreviation": "incidunt", - "limit": 20 + "device_id": 8, + "device_hardware_id": "hic", + "input_measurement_abbreviation": "non", + "limit": 14 } fetch(url, { @@ -4836,14 +5376,14 @@ Store a newly created resource in storage. > Example request: ```bash -curl -X POST "https://test.beep.nl/api/sensordefinition" \ +curl -X POST "https://api.beep.nl/api/sensordefinition" \ -H "Content-Type: application/json" \ - -d '{"name":"iure","inside":false,"offset":806571.656330946,"multiplier":242.72931977,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":4,"device_hardware_id":"eos"}' + -d '{"name":"aut","inside":false,"offset":2023.3,"multiplier":28.832819,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":6,"device_hardware_id":"nihil"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition"); +const url = new URL("https://api.beep.nl/api/sensordefinition"); let headers = { "Content-Type": "application/json", @@ -4851,16 +5391,16 @@ let headers = { } let body = { - "name": "iure", + "name": "aut", "inside": false, - "offset": 806571.656330946, - "multiplier": 242.72931977, + "offset": 2023.3, + "multiplier": 28.832819, "input_measurement_id": 5, "input_measurement_abbreviation": "w_v", "output_measurement_id": 6, "output_measurement_abbreviation": "t_i", - "device_id": 4, - "device_hardware_id": "eos" + "device_id": 6, + "device_hardware_id": "nihil" } fetch(url, { @@ -4901,11 +5441,11 @@ Display the specified resource. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensordefinition/1" +curl -X GET -G "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -4942,11 +5482,11 @@ Update the specified resource in storage. > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/sensordefinition/1" +curl -X PUT "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -4978,11 +5518,11 @@ Remove the specified resource from storage. > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/sensordefinition/1" +curl -X DELETE "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -5013,11 +5553,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/settings" +curl -X POST "https://api.beep.nl/api/settings" ``` ```javascript -const url = new URL("https://test.beep.nl/api/settings"); +const url = new URL("https://api.beep.nl/api/settings"); let headers = { "Accept": "application/json", @@ -5045,11 +5585,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/settings" +curl -X GET -G "https://api.beep.nl/api/settings" ``` ```javascript -const url = new URL("https://test.beep.nl/api/settings"); +const url = new URL("https://api.beep.nl/api/settings"); let headers = { "Accept": "application/json", @@ -5087,11 +5627,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/taxonomy/lists" +curl -X GET -G "https://api.beep.nl/api/taxonomy/lists" ``` ```javascript -const url = new URL("https://test.beep.nl/api/taxonomy/lists"); +const url = new URL("https://api.beep.nl/api/taxonomy/lists"); let headers = { "Accept": "application/json", @@ -5126,11 +5666,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/taxonomy/taxonomy" +curl -X GET -G "https://api.beep.nl/api/taxonomy/taxonomy" ``` ```javascript -const url = new URL("https://test.beep.nl/api/taxonomy/taxonomy"); +const url = new URL("https://api.beep.nl/api/taxonomy/taxonomy"); let headers = { "Accept": "application/json", @@ -5171,14 +5711,14 @@ Registers a new user and sends an e-mail verification request on succesful save > Example request: ```bash -curl -X POST "https://test.beep.nl/api/register" \ +curl -X POST "https://api.beep.nl/api/register" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/register"); +const url = new URL("https://api.beep.nl/api/register"); let headers = { "Content-Type": "application/json", @@ -5222,14 +5762,14 @@ Login via login form > Example request: ```bash -curl -X POST "https://test.beep.nl/api/login" \ +curl -X POST "https://api.beep.nl/api/login" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/login"); +const url = new URL("https://api.beep.nl/api/login"); let headers = { "Content-Type": "application/json", @@ -5288,14 +5828,14 @@ responses: invalid_user, reminder_sent, invalid_password, invalid_token, passwor > Example request: ```bash -curl -X POST "https://test.beep.nl/api/user/reminder" \ +curl -X POST "https://api.beep.nl/api/user/reminder" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user/reminder"); +const url = new URL("https://api.beep.nl/api/user/reminder"); let headers = { "Content-Type": "application/json", @@ -5343,14 +5883,14 @@ responses: INVALID_USER, RESET_LINK_SENT, INVALID_PASSWORD, INVALID_TOKEN, PASSW > Example request: ```bash -curl -X POST "https://test.beep.nl/api/user/reset" \ +curl -X POST "https://api.beep.nl/api/user/reset" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","token":"z8iQafmgP1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user/reset"); +const url = new URL("https://api.beep.nl/api/user/reset"); let headers = { "Content-Type": "application/json", @@ -5399,11 +5939,11 @@ Header parameter with Bearer [api_token] from the user object. Example: Bearer 1 > Example request: ```bash -curl -X POST "https://test.beep.nl/api/authenticate" +curl -X POST "https://api.beep.nl/api/authenticate" ``` ```javascript -const url = new URL("https://test.beep.nl/api/authenticate"); +const url = new URL("https://api.beep.nl/api/authenticate"); let headers = { "Accept": "application/json", @@ -5450,11 +5990,11 @@ Destroy the logged in user and all its data in the database > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/user" +curl -X DELETE "https://api.beep.nl/api/user" ``` ```javascript -const url = new URL("https://test.beep.nl/api/user"); +const url = new URL("https://api.beep.nl/api/user"); let headers = { "Accept": "application/json", @@ -5485,14 +6025,14 @@ Edit the user details > Example request: ```bash -curl -X PATCH "https://test.beep.nl/api/user" \ +curl -X PATCH "https://api.beep.nl/api/user" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user"); +const url = new URL("https://api.beep.nl/api/user"); let headers = { "Content-Type": "application/json", @@ -5540,11 +6080,11 @@ User verification functions > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/email/verify" +curl -X GET -G "https://api.beep.nl/api/email/verify" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/verify"); +const url = new URL("https://api.beep.nl/api/email/verify"); let headers = { "Accept": "application/json", @@ -5578,11 +6118,11 @@ null > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/email/verify/1" +curl -X GET -G "https://api.beep.nl/api/email/verify/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/verify/1"); +const url = new URL("https://api.beep.nl/api/email/verify/1"); let headers = { "Accept": "application/json", @@ -5618,11 +6158,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/email/resend" +curl -X POST "https://api.beep.nl/api/email/resend" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/resend"); +const url = new URL("https://api.beep.nl/api/email/resend"); let headers = { "Accept": "application/json", @@ -5654,11 +6194,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/weather" +curl -X GET -G "https://api.beep.nl/api/weather" ``` ```javascript -const url = new URL("https://test.beep.nl/api/weather"); +const url = new URL("https://api.beep.nl/api/weather"); let headers = { "Accept": "application/json", @@ -5694,11 +6234,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/samplecode" +curl -X GET -G "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json", @@ -5734,11 +6274,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/samplecode" +curl -X POST "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json", @@ -5767,11 +6307,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/samplecode/1" +curl -X GET -G "https://api.beep.nl/api/samplecode/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode/1"); +const url = new URL("https://api.beep.nl/api/samplecode/1"); let headers = { "Accept": "application/json", @@ -5807,11 +6347,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/samplecode/1" +curl -X PUT "https://api.beep.nl/api/samplecode/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode/1"); +const url = new URL("https://api.beep.nl/api/samplecode/1"); let headers = { "Accept": "application/json", @@ -5842,11 +6382,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/samplecode" +curl -X DELETE "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json", diff --git a/public/docs/source/index.md b/public/docs/source/index.md index a1ee42cd..a70eb622 100644 --- a/public/docs/source/index.md +++ b/public/docs/source/index.md @@ -16,7 +16,7 @@ toc_footers: # Info Welcome to the generated API reference. -[Get Postman Collection](http://test.beep.nl/docs/collection.json) +[Get Postman Collection](http://api.beep.nl/docs/collection.json) @@ -32,11 +32,11 @@ Display a listing of the inspection categories. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/categories" +curl -X GET -G "https://api.beep.nl/api/categories" ``` ```javascript -const url = new URL("https://test.beep.nl/api/categories"); +const url = new URL("https://api.beep.nl/api/categories"); let headers = { "Accept": "application/json", @@ -1506,11 +1506,11 @@ Display the specified category. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/categories/1" +curl -X GET -G "https://api.beep.nl/api/categories/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/categories/1"); +const url = new URL("https://api.beep.nl/api/categories/1"); let headers = { "Accept": "application/json", @@ -1549,11 +1549,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/checklists" +curl -X GET -G "https://api.beep.nl/api/checklists" ``` ```javascript -const url = new URL("https://test.beep.nl/api/checklists"); +const url = new URL("https://api.beep.nl/api/checklists"); let headers = { "Accept": "application/json", @@ -1588,11 +1588,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/checklists" +curl -X POST "https://api.beep.nl/api/checklists" ``` ```javascript -const url = new URL("https://test.beep.nl/api/checklists"); +const url = new URL("https://api.beep.nl/api/checklists"); let headers = { "Accept": "application/json", @@ -1620,11 +1620,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/checklists/1" +curl -X GET -G "https://api.beep.nl/api/checklists/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/checklists/1"); +const url = new URL("https://api.beep.nl/api/checklists/1"); let headers = { "Accept": "application/json", @@ -1659,11 +1659,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/checklists/1" +curl -X PUT "https://api.beep.nl/api/checklists/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/checklists/1"); +const url = new URL("https://api.beep.nl/api/checklists/1"); let headers = { "Accept": "application/json", @@ -1693,11 +1693,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/checklists/1" +curl -X DELETE "https://api.beep.nl/api/checklists/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/checklists/1"); +const url = new URL("https://api.beep.nl/api/checklists/1"); let headers = { "Accept": "application/json", @@ -1731,14 +1731,14 @@ Store/update multiple Devices in an array of Device objects > Example request: ```bash -curl -X POST "https://test.beep.nl/api/devices/multiple" \ +curl -X POST "https://api.beep.nl/api/devices/multiple" \ -H "Content-Type: application/json" \ - -d '{"id":15,"key":"ipsum","hardware_id":"soluta","name":"eaque","hive_id":16,"type":"pariatur","last_message_received":"corrupti","firmware_version":"voluptatem","hardware_version":"nihil","boot_count":5,"measurement_interval_min":10277.20748579,"measurement_transmission_ratio":23.812,"ble_pin":"explicabo","battery_voltage":469,"next_downlink_message":"atque","last_downlink_result":"animi"}' + -d '{"id":1,"key":"necessitatibus","hardware_id":"sit","name":"alias","hive_id":14,"type":"doloribus","last_message_received":"incidunt","firmware_version":"quis","hardware_version":"ex","boot_count":8,"measurement_interval_min":0,"measurement_transmission_ratio":6274348.332087,"ble_pin":"aut","battery_voltage":221881238,"next_downlink_message":"dolore","last_downlink_result":"exercitationem"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices/multiple"); +const url = new URL("https://api.beep.nl/api/devices/multiple"); let headers = { "Content-Type": "application/json", @@ -1746,22 +1746,22 @@ let headers = { } let body = { - "id": 15, - "key": "ipsum", - "hardware_id": "soluta", - "name": "eaque", - "hive_id": 16, - "type": "pariatur", - "last_message_received": "corrupti", - "firmware_version": "voluptatem", - "hardware_version": "nihil", - "boot_count": 5, - "measurement_interval_min": 10277.20748579, - "measurement_transmission_ratio": 23.812, - "ble_pin": "explicabo", - "battery_voltage": 469, - "next_downlink_message": "atque", - "last_downlink_result": "animi" + "id": 1, + "key": "necessitatibus", + "hardware_id": "sit", + "name": "alias", + "hive_id": 14, + "type": "doloribus", + "last_message_received": "incidunt", + "firmware_version": "quis", + "hardware_version": "ex", + "boot_count": 8, + "measurement_interval_min": 0, + "measurement_transmission_ratio": 6274348.332087, + "ble_pin": "aut", + "battery_voltage": 221881238, + "next_downlink_message": "dolore", + "last_downlink_result": "exercitationem" } fetch(url, { @@ -1809,11 +1809,11 @@ Get a TTN Device by Device ID (BEEP hardware_id) > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/devices/ttn/1" +curl -X GET -G "https://api.beep.nl/api/devices/ttn/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices/ttn/1"); +const url = new URL("https://api.beep.nl/api/devices/ttn/1"); let headers = { "Accept": "application/json", @@ -1857,11 +1857,11 @@ Create an OTAA LoRaWAN Device in the BEEP TTN Console by dev_id (dev_id (= BEEP > Example request: ```bash -curl -X POST "https://test.beep.nl/api/devices/ttn/1" +curl -X POST "https://api.beep.nl/api/devices/ttn/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices/ttn/1"); +const url = new URL("https://api.beep.nl/api/devices/ttn/1"); let headers = { "Accept": "application/json", @@ -1892,14 +1892,14 @@ List all user Devices > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/devices" \ +curl -X GET -G "https://api.beep.nl/api/devices" \ -H "Content-Type: application/json" \ - -d '{"hardware_id":"voluptas"}' + -d '{"hardware_id":"similique"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices"); +const url = new URL("https://api.beep.nl/api/devices"); let headers = { "Content-Type": "application/json", @@ -1907,7 +1907,7 @@ let headers = { } let body = { - "hardware_id": "voluptas" + "hardware_id": "similique" } fetch(url, { @@ -1989,14 +1989,14 @@ Create or Update a Device > Example request: ```bash -curl -X POST "https://test.beep.nl/api/devices" \ +curl -X POST "https://api.beep.nl/api/devices" \ -H "Content-Type: application/json" \ - -d '{"id":20,"key":"in","hardware_id":"debitis","name":"nihil","hive_id":3,"type":"dignissimos","last_message_received":"mollitia","firmware_version":"incidunt","hardware_version":"voluptatibus","boot_count":10,"measurement_interval_min":390,"measurement_transmission_ratio":1.4775683,"ble_pin":"sed","battery_voltage":43592823.35,"next_downlink_message":"ab","last_downlink_result":"tenetur","create_ttn_device":false,"app_key":"autem"}' + -d '{"id":16,"key":"ab","hardware_id":"laudantium","name":"nostrum","hive_id":4,"type":"eum","last_message_received":"modi","firmware_version":"illum","hardware_version":"sed","boot_count":16,"measurement_interval_min":218.343005352,"measurement_transmission_ratio":13228.3832504,"ble_pin":"minus","battery_voltage":306.848,"next_downlink_message":"eveniet","last_downlink_result":"soluta","create_ttn_device":true,"app_key":"numquam"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices"); +const url = new URL("https://api.beep.nl/api/devices"); let headers = { "Content-Type": "application/json", @@ -2004,24 +2004,24 @@ let headers = { } let body = { - "id": 20, - "key": "in", - "hardware_id": "debitis", - "name": "nihil", - "hive_id": 3, - "type": "dignissimos", - "last_message_received": "mollitia", - "firmware_version": "incidunt", - "hardware_version": "voluptatibus", - "boot_count": 10, - "measurement_interval_min": 390, - "measurement_transmission_ratio": 1.4775683, - "ble_pin": "sed", - "battery_voltage": 43592823.35, - "next_downlink_message": "ab", - "last_downlink_result": "tenetur", - "create_ttn_device": false, - "app_key": "autem" + "id": 16, + "key": "ab", + "hardware_id": "laudantium", + "name": "nostrum", + "hive_id": 4, + "type": "eum", + "last_message_received": "modi", + "firmware_version": "illum", + "hardware_version": "sed", + "boot_count": 16, + "measurement_interval_min": 218.343005352, + "measurement_transmission_ratio": 13228.3832504, + "ble_pin": "minus", + "battery_voltage": 306.848, + "next_downlink_message": "eveniet", + "last_downlink_result": "soluta", + "create_ttn_device": true, + "app_key": "numquam" } fetch(url, { @@ -2071,11 +2071,11 @@ List one Device by id > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/devices/1" +curl -X GET -G "https://api.beep.nl/api/devices/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices/1"); +const url = new URL("https://api.beep.nl/api/devices/1"); let headers = { "Accept": "application/json", @@ -2113,14 +2113,14 @@ Update an existing Device > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/devices/1" \ +curl -X PUT "https://api.beep.nl/api/devices/1" \ -H "Content-Type: application/json" \ - -d '{"id":7,"key":"eligendi","hardware_id":"repellendus","name":"et","hive_id":3,"type":"reiciendis","delete":false,"last_message_received":"aliquam","firmware_version":"necessitatibus","hardware_version":"aut","boot_count":9,"measurement_interval_min":30.27043,"measurement_transmission_ratio":25.64,"ble_pin":"quisquam","battery_voltage":198.9654075,"next_downlink_message":"consequatur","last_downlink_result":"molestiae"}' + -d '{"id":20,"key":"praesentium","hardware_id":"eveniet","name":"quia","hive_id":7,"type":"laudantium","delete":true,"last_message_received":"quibusdam","firmware_version":"ipsum","hardware_version":"nostrum","boot_count":15,"measurement_interval_min":3998.31519,"measurement_transmission_ratio":35.514,"ble_pin":"consequatur","battery_voltage":591377700,"next_downlink_message":"error","last_downlink_result":"ipsum"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/devices/1"); +const url = new URL("https://api.beep.nl/api/devices/1"); let headers = { "Content-Type": "application/json", @@ -2128,23 +2128,23 @@ let headers = { } let body = { - "id": 7, - "key": "eligendi", - "hardware_id": "repellendus", - "name": "et", - "hive_id": 3, - "type": "reiciendis", - "delete": false, - "last_message_received": "aliquam", - "firmware_version": "necessitatibus", - "hardware_version": "aut", - "boot_count": 9, - "measurement_interval_min": 30.27043, - "measurement_transmission_ratio": 25.64, - "ble_pin": "quisquam", - "battery_voltage": 198.9654075, - "next_downlink_message": "consequatur", - "last_downlink_result": "molestiae" + "id": 20, + "key": "praesentium", + "hardware_id": "eveniet", + "name": "quia", + "hive_id": 7, + "type": "laudantium", + "delete": true, + "last_message_received": "quibusdam", + "firmware_version": "ipsum", + "hardware_version": "nostrum", + "boot_count": 15, + "measurement_interval_min": 3998.31519, + "measurement_transmission_ratio": 35.514, + "ble_pin": "consequatur", + "battery_voltage": 591377700, + "next_downlink_message": "error", + "last_downlink_result": "ipsum" } fetch(url, { @@ -2195,11 +2195,11 @@ Export all data to an Excel file by email (GDPR) > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/export" +curl -X GET -G "https://api.beep.nl/api/export" ``` ```javascript -const url = new URL("https://test.beep.nl/api/export"); +const url = new URL("https://api.beep.nl/api/export"); let headers = { "Accept": "application/json", @@ -2234,11 +2234,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/export/csv" +curl -X POST "https://api.beep.nl/api/export/csv" ``` ```javascript -const url = new URL("https://test.beep.nl/api/export/csv"); +const url = new URL("https://api.beep.nl/api/export/csv"); let headers = { "Accept": "application/json", @@ -2269,11 +2269,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/groups/checktoken" +curl -X POST "https://api.beep.nl/api/groups/checktoken" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups/checktoken"); +const url = new URL("https://api.beep.nl/api/groups/checktoken"); let headers = { "Accept": "application/json", @@ -2301,11 +2301,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/groups" +curl -X GET -G "https://api.beep.nl/api/groups" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups"); +const url = new URL("https://api.beep.nl/api/groups"); let headers = { "Accept": "application/json", @@ -2340,11 +2340,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/groups" +curl -X POST "https://api.beep.nl/api/groups" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups"); +const url = new URL("https://api.beep.nl/api/groups"); let headers = { "Accept": "application/json", @@ -2372,11 +2372,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/groups/1" +curl -X GET -G "https://api.beep.nl/api/groups/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups/1"); +const url = new URL("https://api.beep.nl/api/groups/1"); let headers = { "Accept": "application/json", @@ -2411,11 +2411,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/groups/1" +curl -X PUT "https://api.beep.nl/api/groups/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups/1"); +const url = new URL("https://api.beep.nl/api/groups/1"); let headers = { "Accept": "application/json", @@ -2445,11 +2445,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/groups/1" +curl -X DELETE "https://api.beep.nl/api/groups/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups/1"); +const url = new URL("https://api.beep.nl/api/groups/1"); let headers = { "Accept": "application/json", @@ -2477,11 +2477,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/groups/detach/1" +curl -X DELETE "https://api.beep.nl/api/groups/detach/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/groups/detach/1"); +const url = new URL("https://api.beep.nl/api/groups/detach/1"); let headers = { "Accept": "application/json", @@ -2515,11 +2515,11 @@ Display a listing of user hives. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/hives" +curl -X GET -G "https://api.beep.nl/api/hives" ``` ```javascript -const url = new URL("https://test.beep.nl/api/hives"); +const url = new URL("https://api.beep.nl/api/hives"); let headers = { "Accept": "application/json", @@ -2609,11 +2609,11 @@ Store a newly created Hive in storage for the authenticated user. > Example request: ```bash -curl -X POST "https://test.beep.nl/api/hives" +curl -X POST "https://api.beep.nl/api/hives" ``` ```javascript -const url = new URL("https://test.beep.nl/api/hives"); +const url = new URL("https://api.beep.nl/api/hives"); let headers = { "Accept": "application/json", @@ -2644,11 +2644,11 @@ Display the specified resource. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/hives/1" +curl -X GET -G "https://api.beep.nl/api/hives/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/hives/1"); +const url = new URL("https://api.beep.nl/api/hives/1"); let headers = { "Accept": "application/json", @@ -2686,11 +2686,11 @@ Update the specified user Hive in storage. > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/hives/1" +curl -X PUT "https://api.beep.nl/api/hives/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/hives/1"); +const url = new URL("https://api.beep.nl/api/hives/1"); let headers = { "Accept": "application/json", @@ -2723,11 +2723,11 @@ Remove the specified user Hive from storage. > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/hives/1" +curl -X DELETE "https://api.beep.nl/api/hives/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/hives/1"); +const url = new URL("https://api.beep.nl/api/hives/1"); let headers = { "Accept": "application/json", @@ -2759,11 +2759,11 @@ Store and retreive image metadata (image_url, thumb_url, width, category_id, etc > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/images" +curl -X GET -G "https://api.beep.nl/api/images" ``` ```javascript -const url = new URL("https://test.beep.nl/api/images"); +const url = new URL("https://api.beep.nl/api/images"); let headers = { "Accept": "application/json", @@ -2799,11 +2799,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/images" +curl -X POST "https://api.beep.nl/api/images" ``` ```javascript -const url = new URL("https://test.beep.nl/api/images"); +const url = new URL("https://api.beep.nl/api/images"); let headers = { "Accept": "application/json", @@ -2832,11 +2832,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/images/1" +curl -X GET -G "https://api.beep.nl/api/images/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/images/1"); +const url = new URL("https://api.beep.nl/api/images/1"); let headers = { "Accept": "application/json", @@ -2872,11 +2872,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/images/1" +curl -X PUT "https://api.beep.nl/api/images/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/images/1"); +const url = new URL("https://api.beep.nl/api/images/1"); let headers = { "Accept": "application/json", @@ -2907,11 +2907,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/images" +curl -X DELETE "https://api.beep.nl/api/images" ``` ```javascript -const url = new URL("https://test.beep.nl/api/images"); +const url = new URL("https://api.beep.nl/api/images"); let headers = { "Accept": "application/json", @@ -2945,11 +2945,11 @@ Show the 'inspections' list with objects reflecting only the general i > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/inspections" +curl -X GET -G "https://api.beep.nl/api/inspections" ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections"); +const url = new URL("https://api.beep.nl/api/inspections"); let headers = { "Accept": "application/json", @@ -2987,14 +2987,14 @@ List checklists and its inspections linked to Hive id. The 'inspections� > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/inspections/lists" \ +curl -X GET -G "https://api.beep.nl/api/inspections/lists" \ -H "Content-Type: application/json" \ - -d '{"id":9}' + -d '{"id":15}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections/lists"); +const url = new URL("https://api.beep.nl/api/inspections/lists"); let headers = { "Content-Type": "application/json", @@ -3002,7 +3002,7 @@ let headers = { } let body = { - "id": 9 + "id": 15 } fetch(url, { @@ -3073,16 +3073,11 @@ Show the 'inspection' object. The object reflects only the general ins > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/inspections/1?id=pariatur" +curl -X GET -G "https://api.beep.nl/api/inspections/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections/1"); - - let params = { - "id": "pariatur", - }; - Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); +const url = new URL("https://api.beep.nl/api/inspections/1"); let headers = { "Accept": "application/json", @@ -3109,11 +3104,6 @@ fetch(url, { ### HTTP Request `GET api/inspections/{id}` -#### Query Parameters - -Parameter | Status | Description ---------- | ------- | ------- | ----------- - id | required | The id of the inspection. @@ -3125,16 +3115,11 @@ List all inspections linked to Hive id. The 'inspections' object conta > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/inspections/hive/1?hive_id=dolores" +curl -X GET -G "https://api.beep.nl/api/inspections/hive/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections/hive/1"); - - let params = { - "hive_id": "dolores", - }; - Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); +const url = new URL("https://api.beep.nl/api/inspections/hive/1"); let headers = { "Accept": "application/json", @@ -3258,11 +3243,6 @@ fetch(url, { ### HTTP Request `GET api/inspections/hive/{hive_id}` -#### Query Parameters - -Parameter | Status | Description ---------- | ------- | ------- | ----------- - hive_id | required | The hive to request inspections from. @@ -3274,14 +3254,14 @@ Register a new hive inspection the 'inspection' object. The object ref > Example request: ```bash -curl -X POST "https://test.beep.nl/api/inspections/store" \ +curl -X POST "https://api.beep.nl/api/inspections/store" \ -H "Content-Type: application/json" \ -d '{"date":"2020-05-18 16:16","items":"{\"547\":0,\"595\":1,\"845\":\"814\"}","hive_id":42,"impression":-1,"attention":1,"reminder":"This is an inspection reminder","reminder_date":"2020-05-27 16:16","notes":"This is an inspection note","checklist_id":829}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections/store"); +const url = new URL("https://api.beep.nl/api/inspections/store"); let headers = { "Content-Type": "application/json", @@ -3336,11 +3316,11 @@ Parameter | Type | Status | Description > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/inspections/1" +curl -X DELETE "https://api.beep.nl/api/inspections/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/inspections/1"); +const url = new URL("https://api.beep.nl/api/inspections/1"); let headers = { "Accept": "application/json", @@ -3372,11 +3352,11 @@ Manage Apiaries > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/locations" +curl -X GET -G "https://api.beep.nl/api/locations" ``` ```javascript -const url = new URL("https://test.beep.nl/api/locations"); +const url = new URL("https://api.beep.nl/api/locations"); let headers = { "Accept": "application/json", @@ -3412,11 +3392,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/locations" +curl -X POST "https://api.beep.nl/api/locations" ``` ```javascript -const url = new URL("https://test.beep.nl/api/locations"); +const url = new URL("https://api.beep.nl/api/locations"); let headers = { "Accept": "application/json", @@ -3445,11 +3425,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/locations/1" +curl -X GET -G "https://api.beep.nl/api/locations/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/locations/1"); +const url = new URL("https://api.beep.nl/api/locations/1"); let headers = { "Accept": "application/json", @@ -3485,11 +3465,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/locations/1" +curl -X PUT "https://api.beep.nl/api/locations/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/locations/1"); +const url = new URL("https://api.beep.nl/api/locations/1"); let headers = { "Accept": "application/json", @@ -3520,11 +3500,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/locations/1" +curl -X DELETE "https://api.beep.nl/api/locations/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/locations/1"); +const url = new URL("https://api.beep.nl/api/locations/1"); let headers = { "Accept": "application/json", @@ -3557,14 +3537,14 @@ Store sensor measurement data (see BEEP sensor data API definition) from API, or > Example request: ```bash -curl -X POST "https://test.beep.nl/api/sensors" \ +curl -X POST "https://api.beep.nl/api/sensors" \ -H "Content-Type: application/json" \ - -d '{"key":"dignissimos","data":[],"payload_fields":[]}' + -d '{"key":"dicta","data":[],"payload_fields":[]}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors"); +const url = new URL("https://api.beep.nl/api/sensors"); let headers = { "Content-Type": "application/json", @@ -3572,7 +3552,7 @@ let headers = { } let body = { - "key": "dignissimos", + "key": "dicta", "data": [], "payload_fields": [] } @@ -3610,14 +3590,14 @@ When TTN payload is supplied, the TTN HTTP integration decoder/converter is assu > Example request: ```bash -curl -X POST "https://test.beep.nl/api/lora_sensors" \ +curl -X POST "https://api.beep.nl/api/lora_sensors" \ -H "Content-Type: application/json" \ - -d '{"key":"facilis","payload_fields":[],"DevEUI_uplink":[]}' + -d '{"key":"recusandae","payload_fields":[],"DevEUI_uplink":[]}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/lora_sensors"); +const url = new URL("https://api.beep.nl/api/lora_sensors"); let headers = { "Content-Type": "application/json", @@ -3625,7 +3605,7 @@ let headers = { } let body = { - "key": "facilis", + "key": "recusandae", "payload_fields": [], "DevEUI_uplink": [] } @@ -3661,14 +3641,14 @@ Store sensor measurement data (see BEEP sensor data API definition) from API, or > Example request: ```bash -curl -X POST "https://test.beep.nl/api/unsecure_sensors" \ +curl -X POST "https://api.beep.nl/api/unsecure_sensors" \ -H "Content-Type: application/json" \ - -d '{"key":"vero","data":[],"payload_fields":[]}' + -d '{"key":"id","data":[],"payload_fields":[]}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/unsecure_sensors"); +const url = new URL("https://api.beep.nl/api/unsecure_sensors"); let headers = { "Content-Type": "application/json", @@ -3676,7 +3656,7 @@ let headers = { } let body = { - "key": "vero", + "key": "id", "data": [], "payload_fields": [] } @@ -3713,14 +3693,14 @@ Request all sensor measurements from a certain interval (hour, day, week, month, > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensors/measurements" \ +curl -X GET -G "https://api.beep.nl/api/sensors/measurements" \ -H "Content-Type: application/json" \ - -d '{"key":"deserunt","id":5,"hive_id":4,"names":"nobis","interval":"blanditiis","index":16}' + -d '{"key":"deserunt","id":1,"hive_id":3,"names":"veritatis","interval":"quae","index":11}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/measurements"); +const url = new URL("https://api.beep.nl/api/sensors/measurements"); let headers = { "Content-Type": "application/json", @@ -3729,11 +3709,11 @@ let headers = { let body = { "key": "deserunt", - "id": 5, - "hive_id": 4, - "names": "nobis", - "interval": "blanditiis", - "index": 16 + "id": 1, + "hive_id": 3, + "names": "veritatis", + "interval": "quae", + "index": 11 } fetch(url, { @@ -3778,14 +3758,14 @@ Request last measurement values of all sensor measurements from a sensor (Device > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensors/lastvalues" \ +curl -X GET -G "https://api.beep.nl/api/sensors/lastvalues" \ -H "Content-Type: application/json" \ - -d '{"key":"consectetur","id":5,"hive_id":2}' + -d '{"key":"magni","id":20,"hive_id":9}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/lastvalues"); +const url = new URL("https://api.beep.nl/api/sensors/lastvalues"); let headers = { "Content-Type": "application/json", @@ -3793,9 +3773,9 @@ let headers = { } let body = { - "key": "consectetur", - "id": 5, - "hive_id": 2 + "key": "magni", + "id": 20, + "hive_id": 9 } fetch(url, { @@ -3837,14 +3817,14 @@ Request last weight related measurement values from a sensor (Device), used by l > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensors/lastweight" \ +curl -X GET -G "https://api.beep.nl/api/sensors/lastweight" \ -H "Content-Type: application/json" \ - -d '{"key":"numquam","id":3,"hive_id":19}' + -d '{"key":"molestiae","id":6,"hive_id":7}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/lastweight"); +const url = new URL("https://api.beep.nl/api/sensors/lastweight"); let headers = { "Content-Type": "application/json", @@ -3852,9 +3832,9 @@ let headers = { } let body = { - "key": "numquam", - "id": 3, - "hive_id": 19 + "key": "molestiae", + "id": 6, + "hive_id": 7 } fetch(url, { @@ -3905,11 +3885,11 @@ Because the measurements can come in only each hour/ 3hrs, set a value to trigge > Example request: ```bash -curl -X POST "https://test.beep.nl/api/sensors/calibrateweight" +curl -X POST "https://api.beep.nl/api/sensors/calibrateweight" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/calibrateweight"); +const url = new URL("https://api.beep.nl/api/sensors/calibrateweight"); let headers = { "Accept": "application/json", @@ -3937,11 +3917,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/sensors/offsetweight" +curl -X POST "https://api.beep.nl/api/sensors/offsetweight" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/offsetweight"); +const url = new URL("https://api.beep.nl/api/sensors/offsetweight"); let headers = { "Accept": "application/json", @@ -3969,11 +3949,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensors/measurement_types_available" +curl -X GET -G "https://api.beep.nl/api/sensors/measurement_types_available" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensors/measurement_types_available"); +const url = new URL("https://api.beep.nl/api/sensors/measurement_types_available"); let headers = { "Accept": "application/json", @@ -4012,14 +3992,14 @@ When TTN payload is supplied, the TTN HTTP integration decoder/converter is assu > Example request: ```bash -curl -X POST "https://test.beep.nl/api/lora_sensors_auth" \ +curl -X POST "https://api.beep.nl/api/lora_sensors_auth" \ -H "Content-Type: application/json" \ - -d '{"key":"eum","payload_fields":[],"DevEUI_uplink":[]}' + -d '{"key":"totam","payload_fields":[],"DevEUI_uplink":[]}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/lora_sensors_auth"); +const url = new URL("https://api.beep.nl/api/lora_sensors_auth"); let headers = { "Content-Type": "application/json", @@ -4027,7 +4007,7 @@ let headers = { } let body = { - "key": "eum", + "key": "totam", "payload_fields": [], "DevEUI_uplink": [] } @@ -4065,11 +4045,11 @@ Not used > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/productions" +curl -X GET -G "https://api.beep.nl/api/productions" ``` ```javascript -const url = new URL("https://test.beep.nl/api/productions"); +const url = new URL("https://api.beep.nl/api/productions"); let headers = { "Accept": "application/json", @@ -4105,11 +4085,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/productions" +curl -X POST "https://api.beep.nl/api/productions" ``` ```javascript -const url = new URL("https://test.beep.nl/api/productions"); +const url = new URL("https://api.beep.nl/api/productions"); let headers = { "Accept": "application/json", @@ -4138,11 +4118,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/productions/1" +curl -X GET -G "https://api.beep.nl/api/productions/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/productions/1"); +const url = new URL("https://api.beep.nl/api/productions/1"); let headers = { "Accept": "application/json", @@ -4178,11 +4158,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/productions/1" +curl -X PUT "https://api.beep.nl/api/productions/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/productions/1"); +const url = new URL("https://api.beep.nl/api/productions/1"); let headers = { "Accept": "application/json", @@ -4213,11 +4193,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/productions/1" +curl -X DELETE "https://api.beep.nl/api/productions/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/productions/1"); +const url = new URL("https://api.beep.nl/api/productions/1"); let headers = { "Accept": "application/json", @@ -4249,11 +4229,11 @@ Not used > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/queens" +curl -X GET -G "https://api.beep.nl/api/queens" ``` ```javascript -const url = new URL("https://test.beep.nl/api/queens"); +const url = new URL("https://api.beep.nl/api/queens"); let headers = { "Accept": "application/json", @@ -4289,11 +4269,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/queens" +curl -X POST "https://api.beep.nl/api/queens" ``` ```javascript -const url = new URL("https://test.beep.nl/api/queens"); +const url = new URL("https://api.beep.nl/api/queens"); let headers = { "Accept": "application/json", @@ -4322,11 +4302,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/queens/1" +curl -X GET -G "https://api.beep.nl/api/queens/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/queens/1"); +const url = new URL("https://api.beep.nl/api/queens/1"); let headers = { "Accept": "application/json", @@ -4362,11 +4342,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/queens/1" +curl -X PUT "https://api.beep.nl/api/queens/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/queens/1"); +const url = new URL("https://api.beep.nl/api/queens/1"); let headers = { "Accept": "application/json", @@ -4397,11 +4377,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/queens/1" +curl -X DELETE "https://api.beep.nl/api/queens/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/queens/1"); +const url = new URL("https://api.beep.nl/api/queens/1"); let headers = { "Accept": "application/json", @@ -4433,11 +4413,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/research" +curl -X GET -G "https://api.beep.nl/api/research" ``` ```javascript -const url = new URL("https://test.beep.nl/api/research"); +const url = new URL("https://api.beep.nl/api/research"); let headers = { "Accept": "application/json", @@ -4473,11 +4453,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/research/1/add_consent" +curl -X POST "https://api.beep.nl/api/research/1/add_consent" ``` ```javascript -const url = new URL("https://test.beep.nl/api/research/1/add_consent"); +const url = new URL("https://api.beep.nl/api/research/1/add_consent"); let headers = { "Accept": "application/json", @@ -4505,11 +4485,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/research/1/remove_consent" +curl -X POST "https://api.beep.nl/api/research/1/remove_consent" ``` ```javascript -const url = new URL("https://test.beep.nl/api/research/1/remove_consent"); +const url = new URL("https://api.beep.nl/api/research/1/remove_consent"); let headers = { "Accept": "application/json", @@ -4537,11 +4517,11 @@ fetch(url, { > Example request: ```bash -curl -X PATCH "https://test.beep.nl/api/research/1/edit/1" +curl -X PATCH "https://api.beep.nl/api/research/1/edit/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/research/1/edit/1"); +const url = new URL("https://api.beep.nl/api/research/1/edit/1"); let headers = { "Accept": "application/json", @@ -4569,11 +4549,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/research/1/delete/1" +curl -X DELETE "https://api.beep.nl/api/research/1/delete/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/research/1/delete/1"); +const url = new URL("https://api.beep.nl/api/research/1/delete/1"); let headers = { "Accept": "application/json", @@ -4607,11 +4587,11 @@ List all available Researches > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/researchdata" +curl -X GET -G "https://api.beep.nl/api/researchdata" ``` ```javascript -const url = new URL("https://test.beep.nl/api/researchdata"); +const url = new URL("https://api.beep.nl/api/researchdata"); let headers = { "Accept": "application/json", @@ -4627,6 +4607,87 @@ fetch(url, { ``` +> Example response (200): + +```json +[ + { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-11-13 17:08:31", + "name": "B-GOOD", + "url": "https:\/\/b-good-project.eu\/", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research-b-good", + "institution": "Wageningen University & Research", + "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data", + "start_date": "2019-07-01 00:00:00", + "end_date": "2023-06-30 00:00:00", + "image_id": 1, + "consent": true, + "consent_history": [ + { + "id": 185, + "created_at": "2020-11-12 22:28:09", + "updated_at": "2020-06-12 22:28:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 1, + "created_at": "2020-02-25 03:02:23", + "updated_at": "2020-05-27 03:03:00", + "user_id": 1, + "research_id": 1, + "consent": 0, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 97, + "created_at": "2020-05-14 16:24:41", + "updated_at": "2020-03-14 16:24:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + } + ], + "checklist_names": [ + "1 Winter", + "2 Varroa", + "3 Summer+", + "4 Summer", + "5 Health" + ], + "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-02-25 03:01:57", + "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research", + "height": 1271, + "width": 1271, + "size_kb": 51, + "date": "2020-02-25 03:01:57", + "hive_id": null, + "category_id": null, + "inspection_id": null + } + } +] +``` > Example response (401): ```json @@ -4649,16 +4710,11 @@ List one Research by id with list of consent_users > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/researchdata/1?id=consequatur" +curl -X GET -G "https://api.beep.nl/api/researchdata/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/researchdata/1"); - - let params = { - "id": "consequatur", - }; - Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); +const url = new URL("https://api.beep.nl/api/researchdata/1"); let headers = { "Accept": "application/json", @@ -4674,6 +4730,119 @@ fetch(url, { ``` +> Example response (200): + +```json +{ + "research": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-11-18 10:33:23", + "name": "B-GOOD", + "url": "https:\/\/b-good-project.eu\/", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research-b-good", + "institution": "Wageningen University & Research", + "type_of_data_used": "Hive inspections, hive settings, BEEP base measurement data", + "start_date": "2019-07-01 00:00:00", + "end_date": "2023-06-30 00:00:00", + "image_id": 1, + "consent": true, + "consent_history": [ + { + "id": 185, + "created_at": "2020-11-12 22:28:09", + "updated_at": "2020-06-12 22:28:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 1, + "created_at": "2020-02-25 03:02:23", + "updated_at": "2020-05-27 03:03:00", + "user_id": 1, + "research_id": 1, + "consent": 0, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + }, + { + "id": 97, + "created_at": "2020-05-14 16:24:41", + "updated_at": "2020-03-14 16:24:00", + "user_id": 1, + "research_id": 1, + "consent": 1, + "consent_location_ids": null, + "consent_hive_ids": null, + "consent_sensor_ids": null + } + ], + "checklist_names": [ + "1 Winter", + "2 Varroa", + "3 Summer+", + "4 Summer", + "5 Health" + ], + "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image": { + "id": 1, + "created_at": "2020-02-25 03:01:57", + "updated_at": "2020-02-25 03:01:57", + "filename": "6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "image_url": "\/storage\/users\/1\/images\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "thumb_url": "\/storage\/users\/1\/thumbs\/research\/6LJEp35dodWWtfxnm3xfRnL05qvvJrHbn8IXAJqNCFZj2vFjwyLXbmWscKVz.jpg", + "description": "B-GOOD has the overall goal to provide guidance for beekeepers and help them make better and more informed decisions.", + "type": "research", + "height": 1271, + "width": 1271, + "size_kb": 51, + "date": "2020-02-25 03:01:57", + "hive_id": null, + "category_id": null, + "inspection_id": null + } + }, + "consent_users": [ + { + "id": 1, + "name": "Beep", + "email": "pim@beep.nl", + "created_at": "2017-07-14 03:34:10", + "updated_at": "2020-05-27 03:03:00", + "last_login": "2020-11-18 10:32:16", + "locale": null, + "consent": 0 + }, + { + "id": 2371, + "name": "app@beep.nl", + "email": "app@beep.nl", + "created_at": "2019-10-24 17:15:55", + "updated_at": "2020-02-25 11:46:59", + "last_login": "2020-08-20 18:24:22", + "locale": null, + "consent": 0 + }, + { + "id": 1, + "name": "Beep", + "email": "pim@beep.nl", + "created_at": "2017-07-14 03:34:10", + "updated_at": "2020-06-12 22:28:00", + "last_login": "2020-11-18 10:32:16", + "locale": null, + "consent": 1 + } + ] +} +``` > Example response (401): ```json @@ -4685,37 +4854,25 @@ fetch(url, { ### HTTP Request `GET api/researchdata/{id}` -#### Query Parameters - -Parameter | Status | Description ---------- | ------- | ------- | ----------- - id | required | The research ID to request data from. ## api/researchdata/{id}/user/{user_id}/{item} GET -List all user 'item' data within the consent=1 periods of a specific user within a Research. +List all user 'item' data within the consent=1 periods of a specific user within a Research. The 'item' field indicates the type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). Example: inspectionsResponse: api/researchdata/1/user/1/inspections.
Requires authentication > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/researchdata/1/user/1/1?id=voluptates&user_id=porro&item=amet" \ +curl -X GET -G "https://api.beep.nl/api/researchdata/1/user/1/1" \ -H "Content-Type: application/json" \ - -d '{"date_start":"suscipit","date_until":"sed"}' + -d '{"date_start":"2020-01-01 00:00:00","date_until":"2020-09-29 23:59:59"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/researchdata/1/user/1/1"); - - let params = { - "id": "voluptates", - "user_id": "porro", - "item": "amet", - }; - Object.keys(params).forEach(key => url.searchParams.append(key, params[key])); +const url = new URL("https://api.beep.nl/api/researchdata/1/user/1/1"); let headers = { "Content-Type": "application/json", @@ -4723,8 +4880,8 @@ let headers = { } let body = { - "date_start": "suscipit", - "date_until": "sed" + "date_start": "2020-01-01 00:00:00", + "date_until": "2020-09-29 23:59:59" } fetch(url, { @@ -4737,6 +4894,396 @@ fetch(url, { ``` +> Example response (200): + +```json +[ + { + "id": 35211, + "notes": "test", + "reminder": null, + "reminder_date": null, + "impression": 2, + "attention": 1, + "created_at": "2020-03-26 18:28:00", + "checklist_id": 798, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [] + }, + { + "id": 40162, + "notes": "Input Liebefeld", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:03:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326538, + "value": "0.6", + "inspection_id": 40162, + "category_id": 977, + "val": "0.6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326539, + "value": "4", + "inspection_id": 40162, + "category_id": 978, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326540, + "value": "2", + "inspection_id": 40162, + "category_id": 979, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326541, + "value": "4", + "inspection_id": 40162, + "category_id": 980, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326542, + "value": "3", + "inspection_id": 40162, + "category_id": 981, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326543, + "value": "581", + "inspection_id": 40162, + "category_id": 982, + "val": "581", + "unit": "bzz", + "type": "number_positive" + }, + { + "id": 326544, + "value": "5", + "inspection_id": 40162, + "category_id": 984, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326545, + "value": "1", + "inspection_id": 40162, + "category_id": 985, + "val": "1", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326546, + "value": "4", + "inspection_id": 40162, + "category_id": 987, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326547, + "value": "5", + "inspection_id": 40162, + "category_id": 988, + "val": "5", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326548, + "value": "4", + "inspection_id": 40162, + "category_id": 989, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326549, + "value": "2", + "inspection_id": 40162, + "category_id": 990, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326550, + "value": "2", + "inspection_id": 40162, + "category_id": 991, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326551, + "value": "3", + "inspection_id": 40162, + "category_id": 992, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326552, + "value": "3", + "inspection_id": 40162, + "category_id": 993, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326553, + "value": "6", + "inspection_id": 40162, + "category_id": 995, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326554, + "value": "2", + "inspection_id": 40162, + "category_id": 996, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326555, + "value": "2", + "inspection_id": 40162, + "category_id": 997, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326556, + "value": "2", + "inspection_id": 40162, + "category_id": 998, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326557, + "value": "2", + "inspection_id": 40162, + "category_id": 999, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326558, + "value": "2", + "inspection_id": 40162, + "category_id": 1000, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326559, + "value": "2", + "inspection_id": 40162, + "category_id": 1001, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326560, + "value": "8", + "inspection_id": 40162, + "category_id": 1163, + "val": "8", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326561, + "value": "4", + "inspection_id": 40162, + "category_id": 1164, + "val": "4", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326562, + "value": "2", + "inspection_id": 40162, + "category_id": 1165, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326563, + "value": "6", + "inspection_id": 40162, + "category_id": 1166, + "val": "6", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326564, + "value": "2", + "inspection_id": 40162, + "category_id": 1167, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326565, + "value": "2", + "inspection_id": 40162, + "category_id": 1168, + "val": "2", + "unit": "x 25cm2", + "type": "square_25cm2" + }, + { + "id": 326566, + "value": "3", + "inspection_id": 40162, + "category_id": 1169, + "val": "3", + "unit": "x 25cm2", + "type": "square_25cm2" + } + ] + }, + { + "id": 40163, + "notes": "Brood photograph", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-04-24 11:07:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 280, + "items": [ + { + "id": 326567, + "value": "1", + "inspection_id": 40163, + "category_id": 399, + "val": "Ja", + "unit": null, + "type": "boolean" + }, + { + "id": 326568, + "value": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "inspection_id": 40163, + "category_id": 973, + "val": "https:\/\/assets.beep.nl\/users\/1\/thumbs\/inspection\/jIcycTYnO8zYq6SHCvAwPHb97BDLFkZaDmfZUop5.png", + "unit": null, + "type": "image" + } + ] + }, + { + "id": 68477, + "notes": null, + "reminder": null, + "reminder_date": null, + "impression": 3, + "attention": 1, + "created_at": "2020-10-23 12:43:00", + "checklist_id": 3206, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [] + }, + { + "id": 68478, + "notes": "Hive change", + "reminder": null, + "reminder_date": null, + "impression": null, + "attention": null, + "created_at": "2020-10-23 13:12:33", + "checklist_id": null, + "image_id": null, + "owner": true, + "thumb_url": null, + "hive_id": 281, + "items": [ + { + "id": 522496, + "value": "2", + "inspection_id": 68478, + "category_id": 85, + "val": "2", + "unit": null, + "type": "number_positive" + }, + { + "id": 522497, + "value": "2", + "inspection_id": 68478, + "category_id": 87, + "val": "2", + "unit": null, + "type": "number" + }, + { + "id": 522498, + "value": "10", + "inspection_id": 68478, + "category_id": 89, + "val": "10", + "unit": null, + "type": "number_positive" + } + ] + } +] +``` > Example response (401): ```json @@ -4754,13 +5301,6 @@ Parameter | Type | Status | Description --------- | ------- | ------- | ------- | ----------- date_start | datetime | optional | The date in 'YYYY-MM-DD HH:mm:ss' format (2020-01-01 00:00:00) to request data from (default is beginning of research, or earlier (except inspections and measurements). date_until | datetime | optional | The date in 'YYYY-MM-DD HH:mm:ss' format (2020-09-29 23:59:59) to request data until (default is until the end of the user consent, or research end). -#### Query Parameters - -Parameter | Status | Description ---------- | ------- | ------- | ----------- - id | required | The research ID to request data from. - user_id | required | The user id to request data from. - item | required | The type of user data (apiaries/hives/devices/inspections/measurements) to request within the research (which the user gave consent for to use). @@ -4775,14 +5315,14 @@ Display a listing of the resource. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensordefinition" \ +curl -X GET -G "https://api.beep.nl/api/sensordefinition" \ -H "Content-Type: application/json" \ - -d '{"device_id":12,"device_hardware_id":"maiores","input_measurement_abbreviation":"incidunt","limit":20}' + -d '{"device_id":8,"device_hardware_id":"hic","input_measurement_abbreviation":"non","limit":14}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition"); +const url = new URL("https://api.beep.nl/api/sensordefinition"); let headers = { "Content-Type": "application/json", @@ -4790,10 +5330,10 @@ let headers = { } let body = { - "device_id": 12, - "device_hardware_id": "maiores", - "input_measurement_abbreviation": "incidunt", - "limit": 20 + "device_id": 8, + "device_hardware_id": "hic", + "input_measurement_abbreviation": "non", + "limit": 14 } fetch(url, { @@ -4836,14 +5376,14 @@ Store a newly created resource in storage. > Example request: ```bash -curl -X POST "https://test.beep.nl/api/sensordefinition" \ +curl -X POST "https://api.beep.nl/api/sensordefinition" \ -H "Content-Type: application/json" \ - -d '{"name":"iure","inside":false,"offset":806571.656330946,"multiplier":242.72931977,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":4,"device_hardware_id":"eos"}' + -d '{"name":"aut","inside":false,"offset":2023.3,"multiplier":28.832819,"input_measurement_id":5,"input_measurement_abbreviation":"w_v","output_measurement_id":6,"output_measurement_abbreviation":"t_i","device_id":6,"device_hardware_id":"nihil"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition"); +const url = new URL("https://api.beep.nl/api/sensordefinition"); let headers = { "Content-Type": "application/json", @@ -4851,16 +5391,16 @@ let headers = { } let body = { - "name": "iure", + "name": "aut", "inside": false, - "offset": 806571.656330946, - "multiplier": 242.72931977, + "offset": 2023.3, + "multiplier": 28.832819, "input_measurement_id": 5, "input_measurement_abbreviation": "w_v", "output_measurement_id": 6, "output_measurement_abbreviation": "t_i", - "device_id": 4, - "device_hardware_id": "eos" + "device_id": 6, + "device_hardware_id": "nihil" } fetch(url, { @@ -4901,11 +5441,11 @@ Display the specified resource. > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/sensordefinition/1" +curl -X GET -G "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -4942,11 +5482,11 @@ Update the specified resource in storage. > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/sensordefinition/1" +curl -X PUT "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -4978,11 +5518,11 @@ Remove the specified resource from storage. > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/sensordefinition/1" +curl -X DELETE "https://api.beep.nl/api/sensordefinition/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/sensordefinition/1"); +const url = new URL("https://api.beep.nl/api/sensordefinition/1"); let headers = { "Accept": "application/json", @@ -5013,11 +5553,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/settings" +curl -X POST "https://api.beep.nl/api/settings" ``` ```javascript -const url = new URL("https://test.beep.nl/api/settings"); +const url = new URL("https://api.beep.nl/api/settings"); let headers = { "Accept": "application/json", @@ -5045,11 +5585,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/settings" +curl -X GET -G "https://api.beep.nl/api/settings" ``` ```javascript -const url = new URL("https://test.beep.nl/api/settings"); +const url = new URL("https://api.beep.nl/api/settings"); let headers = { "Accept": "application/json", @@ -5087,11 +5627,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/taxonomy/lists" +curl -X GET -G "https://api.beep.nl/api/taxonomy/lists" ``` ```javascript -const url = new URL("https://test.beep.nl/api/taxonomy/lists"); +const url = new URL("https://api.beep.nl/api/taxonomy/lists"); let headers = { "Accept": "application/json", @@ -5126,11 +5666,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/taxonomy/taxonomy" +curl -X GET -G "https://api.beep.nl/api/taxonomy/taxonomy" ``` ```javascript -const url = new URL("https://test.beep.nl/api/taxonomy/taxonomy"); +const url = new URL("https://api.beep.nl/api/taxonomy/taxonomy"); let headers = { "Accept": "application/json", @@ -5171,14 +5711,14 @@ Registers a new user and sends an e-mail verification request on succesful save > Example request: ```bash -curl -X POST "https://test.beep.nl/api/register" \ +curl -X POST "https://api.beep.nl/api/register" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/register"); +const url = new URL("https://api.beep.nl/api/register"); let headers = { "Content-Type": "application/json", @@ -5222,14 +5762,14 @@ Login via login form > Example request: ```bash -curl -X POST "https://test.beep.nl/api/login" \ +curl -X POST "https://api.beep.nl/api/login" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/login"); +const url = new URL("https://api.beep.nl/api/login"); let headers = { "Content-Type": "application/json", @@ -5288,14 +5828,14 @@ responses: invalid_user, reminder_sent, invalid_password, invalid_token, passwor > Example request: ```bash -curl -X POST "https://test.beep.nl/api/user/reminder" \ +curl -X POST "https://api.beep.nl/api/user/reminder" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user/reminder"); +const url = new URL("https://api.beep.nl/api/user/reminder"); let headers = { "Content-Type": "application/json", @@ -5343,14 +5883,14 @@ responses: INVALID_USER, RESET_LINK_SENT, INVALID_PASSWORD, INVALID_TOKEN, PASSW > Example request: ```bash -curl -X POST "https://test.beep.nl/api/user/reset" \ +curl -X POST "https://api.beep.nl/api/user/reset" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","token":"z8iQafmgP1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user/reset"); +const url = new URL("https://api.beep.nl/api/user/reset"); let headers = { "Content-Type": "application/json", @@ -5399,11 +5939,11 @@ Header parameter with Bearer [api_token] from the user object. Example: Bearer 1 > Example request: ```bash -curl -X POST "https://test.beep.nl/api/authenticate" +curl -X POST "https://api.beep.nl/api/authenticate" ``` ```javascript -const url = new URL("https://test.beep.nl/api/authenticate"); +const url = new URL("https://api.beep.nl/api/authenticate"); let headers = { "Accept": "application/json", @@ -5450,11 +5990,11 @@ Destroy the logged in user and all its data in the database > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/user" +curl -X DELETE "https://api.beep.nl/api/user" ``` ```javascript -const url = new URL("https://test.beep.nl/api/user"); +const url = new URL("https://api.beep.nl/api/user"); let headers = { "Accept": "application/json", @@ -5485,14 +6025,14 @@ Edit the user details > Example request: ```bash -curl -X PATCH "https://test.beep.nl/api/user" \ +curl -X PATCH "https://api.beep.nl/api/user" \ -H "Content-Type: application/json" \ -d '{"email":"test@test.com","password":"testtest","password_confirm":"testtest","policy_accepted":"beep_terms_2018_05_25_avg_v1"}' ``` ```javascript -const url = new URL("https://test.beep.nl/api/user"); +const url = new URL("https://api.beep.nl/api/user"); let headers = { "Content-Type": "application/json", @@ -5540,11 +6080,11 @@ User verification functions > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/email/verify" +curl -X GET -G "https://api.beep.nl/api/email/verify" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/verify"); +const url = new URL("https://api.beep.nl/api/email/verify"); let headers = { "Accept": "application/json", @@ -5578,11 +6118,11 @@ null > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/email/verify/1" +curl -X GET -G "https://api.beep.nl/api/email/verify/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/verify/1"); +const url = new URL("https://api.beep.nl/api/email/verify/1"); let headers = { "Accept": "application/json", @@ -5618,11 +6158,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/email/resend" +curl -X POST "https://api.beep.nl/api/email/resend" ``` ```javascript -const url = new URL("https://test.beep.nl/api/email/resend"); +const url = new URL("https://api.beep.nl/api/email/resend"); let headers = { "Accept": "application/json", @@ -5654,11 +6194,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/weather" +curl -X GET -G "https://api.beep.nl/api/weather" ``` ```javascript -const url = new URL("https://test.beep.nl/api/weather"); +const url = new URL("https://api.beep.nl/api/weather"); let headers = { "Accept": "application/json", @@ -5694,11 +6234,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/samplecode" +curl -X GET -G "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json", @@ -5734,11 +6274,11 @@ fetch(url, { > Example request: ```bash -curl -X POST "https://test.beep.nl/api/samplecode" +curl -X POST "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json", @@ -5767,11 +6307,11 @@ fetch(url, { > Example request: ```bash -curl -X GET -G "https://test.beep.nl/api/samplecode/1" +curl -X GET -G "https://api.beep.nl/api/samplecode/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode/1"); +const url = new URL("https://api.beep.nl/api/samplecode/1"); let headers = { "Accept": "application/json", @@ -5807,11 +6347,11 @@ fetch(url, { > Example request: ```bash -curl -X PUT "https://test.beep.nl/api/samplecode/1" +curl -X PUT "https://api.beep.nl/api/samplecode/1" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode/1"); +const url = new URL("https://api.beep.nl/api/samplecode/1"); let headers = { "Accept": "application/json", @@ -5842,11 +6382,11 @@ fetch(url, { > Example request: ```bash -curl -X DELETE "https://test.beep.nl/api/samplecode" +curl -X DELETE "https://api.beep.nl/api/samplecode" ``` ```javascript -const url = new URL("https://test.beep.nl/api/samplecode"); +const url = new URL("https://api.beep.nl/api/samplecode"); let headers = { "Accept": "application/json",