From b331f8eff8bf7fe5af14551791678773030e4127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Bu=C3=9Fmann?= Date: Mon, 18 Jul 2022 19:00:08 +0200 Subject: [PATCH] added sourceUrl as property to recipe --- .../models/recipe_information/Recipe.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backend/src/main/spoonaccular/models/recipe_information/Recipe.java b/backend/src/main/spoonaccular/models/recipe_information/Recipe.java index 130a869..2f44c34 100644 --- a/backend/src/main/spoonaccular/models/recipe_information/Recipe.java +++ b/backend/src/main/spoonaccular/models/recipe_information/Recipe.java @@ -19,6 +19,7 @@ import com.fasterxml.jackson.annotation.*; "readyInMinutes", "servings", "image", + "sourceUrl", "spoonacularSourceUrl" }) @Generated("jsonschema2pojo") @@ -44,6 +45,8 @@ public class Recipe { private Integer servings; @JsonProperty("image") private String image; + @JsonProperty("sourceUrl") + private String sourceUrl; @JsonProperty("spoonacularSourceUrl") private String spoonacularSourceUrl; @@ -147,4 +150,14 @@ public class Recipe { this.spoonacularSourceUrl = spoonacularSourceUrl; } + @JsonProperty("sourceUrl") + public String getSourceUrl() { + return sourceUrl; + } + + @JsonProperty("sourceUrl") + public void setSourceUrl(String sourceUrl) { + this.sourceUrl = sourceUrl; + } + }