WIP: non working findRecipeWithIDTest, need create button

This commit is contained in:
Mei Chang van der Werff 2025-11-26 17:14:21 +01:00
commit ce4d1945ef
2 changed files with 19 additions and 3 deletions

View file

@ -45,7 +45,7 @@ public class DetailView {
* @param id every recipe has it's unique id
* @return a singe recipe with the given id
*/
public Recipe findId(int id) throws IOException, InterruptedException {
public Recipe findId(long id) throws IOException, InterruptedException {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(BASE_URL+"/" + id))
.GET()