update api endpoint config and updated related tests (#26)

This commit is contained in:
cato
2022-06-14 19:33:28 +02:00
committed by GitHub
parent 7bfdf7a3e0
commit ebfd1b78e5
9 changed files with 99 additions and 158 deletions

View File

@@ -2,7 +2,6 @@ package whattocook.services;
import whattocook.models.Item;
import java.util.List;
import java.util.Optional;
public interface ItemService {
@@ -10,5 +9,5 @@ public interface ItemService {
void deleteById(Long id);
Optional<Item> findById(long id);
Optional<Item> findByName(String name);
List<Item> findAll();
Iterable<Item> findAll();
}