From 4080d171cf09e44779291b23192d501900a014b9 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Tue, 19 Aug 2025 21:23:54 +0200 Subject: [PATCH] changed docs accordingly --- Docs/backend_API_docs/README.md | 48 ++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/Docs/backend_API_docs/README.md b/Docs/backend_API_docs/README.md index 56a1690..03ead6f 100644 --- a/Docs/backend_API_docs/README.md +++ b/Docs/backend_API_docs/README.md @@ -78,9 +78,51 @@ POST /apiV2/controlInSafe/your_admin_key/5/0 #### Example Response ``` -{ - "message": "Item state updated successfully" -} +{} +``` + +--- + +### 3. Set Return Date + +**POST** `/apiV2/setReturnDate/:key/:loan_code` + +Sets the `returned_date` of a loan to the current server time. + +- `loan_code`: The unique code of the loan. + +#### Example Request + +``` +POST /apiV2/setReturnDate/your_admin_key/123456 +``` + +#### Example Response + +``` +{} +``` + +--- + +### 4. Set Take Date + +**POST** `/apiV2/setTakeDate/:key/:loan_code` + +Sets the `take_date` of a loan to the current server time. + +- `loan_code`: The unique code of the loan. + +#### Example Request + +``` +POST /apiV2/setTakeDate/your_admin_key/123456 +``` + +#### Example Response + +``` +{} ``` ---