Skip to content
Snippets Groups Projects
Commit f57ebf6b authored by Blersch Lara's avatar Blersch Lara
Browse files

recipes with correct images

Warning: errors occur
parent f89c30b7
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,9 @@ public class RecipeTypeAdapter extends TypeAdapter<Recipe> {
code = reader.nextString();
break;
case "imagePath":
String str = reader.nextString();
try {
imagePath = new URI(reader.nextString()).toURL();
imagePath = new URI(str).toURL();
} catch (URISyntaxException e) {
imagePath = null;
}
......
{"name":"Chocolate Cookies","nutritionTable":{"values":"{\"SALT\":12.51624,\"CALORIES\":4295.06,\"CARBS\":406.532,\"PROTEINS\":45.915,\"FAT\":277.04,\"FIBERS\":32.25}"},"code":"r2002832959","ingredients":{"i556906293":300,"i-838328508":200,"i-285791265":5,"i1289246852":2,"i1632060436":25,"i-652164741":250,"i1306252993":75},"description":"Who could say no to chocolate cookies?","preparation":["Quickly knead all ingredients except the chocolate to a smooth dough.","Chop the chocolate and knead it into the dough. ","Take even portions of dough and roll them to a ball and place them on a baking tray lined with parchment paper and flatten them a bit.","Bake in the preheated oven at 200°C for 12 minutes until golden brown."],"categories":[-1790625730],"preparationTimeMins":35,"creationTime":"2023-07-03T13:18:30.172707800"}
\ No newline at end of file
{
"name": "Chocolate Cookies",
"nutritionTable": {
"values": "{\"SALT\":12.51624,\"CALORIES\":4281.81,\"CARBS\":406.4195,\"PROTEINS\":45.94,\"FAT\":277.04,\"FIBERS\":32.25}"
},
"code": "r2002832959",
"ingredients": {
"i556906293": 300,
"i-838328508": 200,
"i-285791265": 5,
"i1289246852": 2,
"i1632060436": 25,
"i-652164741": 250,
"i1306252993": 75
},
"description": "Who could say no to chocolate cookies?",
"preparation": [
"Quickly knead all ingredients except the chocolate to a smooth dough.",
"Chop the chocolate and knead it into the dough. ",
"Take even portions of dough and roll them to a ball and place them on a baking tray lined with parchment paper and flatten them a bit.",
"Bake in the preheated oven at 200°C for 12 minutes until golden brown."
],
"categories": [
-1790625730
],
"preparationTimeMins": 35,
"creationTime": "2023-07-03T13:18:30.172707800",
"imagePath": "file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/ChocolateCookies.jpg"
}
\ No newline at end of file
{"name":"Hash Browns","nutritionTable":{"values":"{\"SALT\":0.00022,\"CALORIES\":28.58,\"CARBS\":0.99,\"PROTEINS\":0.125,\"FAT\":2.7016,\"FIBERS\":0.0884}"},"code":"r-1310363946","ingredients":{"i-1564979921":50,"i2020002901":20,"i944417245":10,"i132673623":600},"description":"Easy to make and super delicious","preparation":["Peel, wash and rasp the potatoes. Then squeeze out the potatoes in a fine sieve.","Finely dice the onion and mix with the potatoes. Season with salt and thyme.","In a huge pan heat the oil. Place small amounts of the mixture in the hot oil and flatten them.","Turn after 1-2 minutes. Reduce the heat, place a lid on top and bake the hash browns for 5-10 minutes.","Serve with vegetables, salad or whatever you like."],"categories":[-1997696521],"preparationTimeMins":10,"creationTime":"2023-07-03T13:36:18.668413900"}
\ No newline at end of file
{"name":"Hash Browns","nutritionTable":{"values":"{\"SALT\":10.02,\"CALORIES\":481.8,\"CARBS\":94.5,\"PROTEINS\":11.95,\"FAT\":2.81,\"FIBERS\":7.99}"},"code":"r-1310363946","ingredients":{"i-1564979921":50,"i2020002901":20,"i944417245":10,"i132673623":600},"description":"Easy to make and super delicious","preparation":["Peel, wash and rasp the potatoes. Then squeeze out the potatoes in a fine sieve.","Finely dice the onion and mix with the potatoes. Season with salt and thyme.","In a huge pan heat the oil. Place small amounts of the mixture in the hot oil and flatten them.","Turn after 1-2 minutes. Reduce the heat, place a lid on top and bake the hash browns for 5-10 minutes.","Serve with vegetables, salad or whatever you like."],"categories":[-1997696521],"preparationTimeMins":10,"creationTime":"2023-07-03T13:36:18.668413900","imagePath":"file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/Kartoffelrösties.jpg"}
\ No newline at end of file
{"name":"Pasta with almond pepper sauce","nutritionTable":{"values":"{\"SALT\":8.5114,\"CALORIES\":1707.7,\"CARBS\":221.2,\"PROTEINS\":57.56,\"FAT\":74.93,\"FIBERS\":37.58}"},"code":"r119776741","ingredients":{"i81128685":500,"i-875230352":500,"i-961511074":120,"i2020002901":50,"i1482058374":20},"description":"Ready in 20 minutes","preparation":["Cook the pasta al dente according to the package directions.","In the meantime, roast the almonds in a pan.","In a blender mix the roasted almonds, peppers, olive oil and garlic. Season with salt and pepper.","Drain the pasta, mix with the sauce and serve with almonds on top."],"categories":[-1997696521],"preparationTimeMins":20,"creationTime":"2023-07-03T13:47:51.041720300"}
\ No newline at end of file
{"name":"Pasta with almond pepper sauce","nutritionTable":{"values":"{\"SALT\":22.5014,\"CALORIES\":2542.7,\"CARBS\":372.7,\"PROTEINS\":85.56,\"FAT\":104.93,\"FIBERS\":46.08}"},"code":"r119776741","ingredients":{"i81128685":500,"i-875230352":500,"i-961511074":120,"i2020002901":50,"i1482058374":20},"description":"Ready in 20 minutes","preparation":["Cook the pasta al dente according to the package directions.","In the meantime, roast the almonds in a pan.","In a blender mix the roasted almonds, peppers, olive oil and garlic. Season with salt and pepper.","Drain the pasta, mix with the sauce and serve with almonds on top."],"categories":[-1997696521],"preparationTimeMins":20,"creationTime":"2023-07-03T13:47:51.041720300","imagePath":"file:/C:/Users/Lara%20Blersch/Documents/Studium/SE2/tasty-pages/target/classes/images/Paprika-Mandel-Pasta.jpg"}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment