diff options
| author | Angelina Zhen <az8703@rit.edu> | 2025-02-16 14:58:56 -0500 | 
|---|---|---|
| committer | Angelina Zhen <az8703@rit.edu> | 2025-02-16 14:58:56 -0500 | 
| commit | 0ebdf62212028197dd23239457a544b9db4755c9 (patch) | |
| tree | b8ab71360c0c3cf1daee678f57a39bbe8d71af52 /ufund-api/src/main/java/com/ufund/api/ufundapi | |
| parent | 82479c054fbbd7fca52e2cabd7b646a4455d7e66 (diff) | |
| download | JellySolutions-0ebdf62212028197dd23239457a544b9db4755c9.tar.gz JellySolutions-0ebdf62212028197dd23239457a544b9db4755c9.tar.bz2 JellySolutions-0ebdf62212028197dd23239457a544b9db4755c9.zip  | |
Added javadoc for deleteNeed
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi')
| -rw-r--r-- | ufund-api/src/main/java/com/ufund/api/ufundapi/controller/CupboardController.java | 7 | 
1 files changed, 7 insertions, 0 deletions
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<Need> deleteNeed(@PathVariable int id) {          try {  | 
