Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @PostMapping("/add/new")
- public ResponseEntity<Void> addNewFood(@RequestBody Calendar calendar) {
- List<Product> products = ((Dish) calendar.getFood()).getProducts();
- return ResponseEntity.ok().build();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement