From e664ff609cd80ca03ed1d353a2db2acc3c9ab4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Wed, 14 May 2025 18:20:55 +0300 Subject: [PATCH] Admin tool dokumentaatio --- Docs.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Docs.md diff --git a/Docs.md b/Docs.md new file mode 100644 index 0000000..260536d --- /dev/null +++ b/Docs.md @@ -0,0 +1,44 @@ +# Admin tool + +## GET /lootaherra/ + +Löytyykö? +200 OK / 404 Not Found + +Lisää uusi loota_admin taulu. Sama kuin loota_customer. + +## GET /lootaherra/orders + +Lista loota_order rivejä, joissa mukana asiakas tieto +[ + { + id: uuid + location: string + create_time: timestamp + + { + id: uuid + identifier: string + created_time: timestamp + } + } +] + +## GET /lootaherra/box-list/ + +Lista loota_box rivejä, joissa mukana loota_orferin tiedot. + +[ + { + id: uuid + delivery_date: timestamp //debuggausta varten + pickup_date: timestamp + + { + id: uuid + customer_id: uuid + location: string + create_time: timestamp + } + } +] \ No newline at end of file