From f40f3b6c0b285f548fdf73cbcc7e796abc97a095 Mon Sep 17 00:00:00 2001 From: Meteo Date: Sat, 13 Jun 2026 23:28:48 +0200 Subject: [PATCH] GET Stomp API call added --- API/v1/office/stompjes/GET Stomp.md | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 API/v1/office/stompjes/GET Stomp.md diff --git a/API/v1/office/stompjes/GET Stomp.md b/API/v1/office/stompjes/GET Stomp.md new file mode 100644 index 0000000..2814254 --- /dev/null +++ b/API/v1/office/stompjes/GET Stomp.md @@ -0,0 +1,63 @@ +# GET Stomp +This will get stompjes from the database. + +#### Location +``` +/api/v1/office/stompjes/ +``` + +#### Permissions required +`office-stompjes` RO + +#### Body parameters +| Parameter | Type | Required | Description | +| -------------------- | ------ | -------- | ----------- | +| builder[0][where][0] | string | no | | +| builder[0][where][1] | string | no | | + +### Example Body (json) +None. + +### Example Request +```php +$curl = curl_init(); + +curl_setopt_array($curl, [ + CURLOPT_URL => $baseUrl . '/api/v1/office/stompjes/' . 'builder[0][where][0]=user_uuid&builder[0][where][1]=5219edbb-512d-11f1-8bac-bc2411125ba4', + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => [ + 'Authorization: Bearer ' . $token, + ], +]); + +$response = curl_exec($curl); +$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); + +if ($response === false) { + echo curl_error($curl); +} + +curl_close($curl); +``` + +### Example Response +```json +[ + { + "stomp_uuid":"16b148da-5c76-11f1-8eb6-bc2411125ba4", + "user_uuid":"5219edbb-512d-11f1-8bac-bc2411125ba4", + "stomp_timestamp":1780179768, + "stomp_reason":null + }, + { + "stomp_uuid":"ea5b47d6-5c75-11f1-8eb6-bc2411125ba4", + "user_uuid":"5219edbb-512d-11f1-8bac-bc2411125ba4", + "stomp_timestamp":1780179693, + "stomp_reason":null + } +] +``` + +#### Known errors or issues. +None are known at the time +If you do encounter issues and get an http code in return, check the response codes on this page. \ No newline at end of file