Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a1c954023 |
No files matched your search
@@ -51,7 +51,7 @@ public class ShoppingListController {
|
||||
|
||||
@PostMapping("/api/lists")
|
||||
public ResponseEntity<ShoppingListResponseDTO> addList(@Valid @RequestBody ShoppingListPostDTO newList){
|
||||
ShoppingList list = new ShoppingList(newList.listName(), null, null, 0, 0);
|
||||
ShoppingList list = new ShoppingList(newList.listName());
|
||||
|
||||
shoppingListRepository.save(list);
|
||||
|
||||
|
||||
@@ -16,8 +16,4 @@ import java.sql.Date;
|
||||
@NoArgsConstructor
|
||||
public class ShoppingList extends ShoppingElement {
|
||||
private String listName;
|
||||
private Date dateCreated;
|
||||
private Date lastChanged;
|
||||
private int numberItems;
|
||||
private int numberCategory;
|
||||
}
|
||||
Reference in new issue
Block a user