deleteCategory wirft 400 bei fehlendem Parameter
This commit is contained in:
1 parent
17b7f485f6
commit
8a6bef92f7
1 file changed
+1
-1
+1
-1
@@ -60,7 +60,7 @@ public class ShoppingCategoryController {
|
||||
public ResponseEntity<Void> deleteCategory(@PathVariable UUID categoryID, @RequestParam(required = false) Boolean deleteAllItems){
|
||||
|
||||
if(deleteAllItems == null){
|
||||
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Missing required parameter deleteAllItems (can be either true or false)");
|
||||
throw new BadRequestException("Missing required parameter deleteAllItems (can be either true or false)");
|
||||
}
|
||||
|
||||
List<ShoppingItem> itemList = shoppingItemRepository.findAllByCategory_Id(categoryID);
|
||||
|
||||
Reference in new issue
Block a user