From 0ebdf62212028197dd23239457a544b9db4755c9 Mon Sep 17 00:00:00 2001 From: Angelina Zhen Date: Sun, 16 Feb 2025 14:58:56 -0500 Subject: Added javadoc for deleteNeed --- .../java/com/ufund/api/ufundapi/controller/CupboardController.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java index dbd4394..3018ac1 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java @@ -125,6 +125,13 @@ public class CupboardController { } } + /** + * Deletes a single need from the cupboard using the Need's id + * + * @param id The need's ID + * @return OK if the need was deleted, NOT_FOUND if the need was not found, or INTERNAL_SERVER_ERROR if an error occurred + + */ @DeleteMapping("/{id}") public ResponseEntity deleteNeed(@PathVariable int id) { try { -- cgit v1.2.3