diff --git a/dpp-backend/digitalproductpass/src/main/java/org/eclipse/tractusx/digitalproductpass/models/catenax/Discovery.java b/dpp-backend/digitalproductpass/src/main/java/org/eclipse/tractusx/digitalproductpass/models/catenax/Discovery.java index 2792b0525..cf4b13925 100644 --- a/dpp-backend/digitalproductpass/src/main/java/org/eclipse/tractusx/digitalproductpass/models/catenax/Discovery.java +++ b/dpp-backend/digitalproductpass/src/main/java/org/eclipse/tractusx/digitalproductpass/models/catenax/Discovery.java @@ -25,6 +25,7 @@ package org.eclipse.tractusx.digitalproductpass.models.catenax; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -34,6 +35,7 @@ * This class consists exclusively to define attributes and methods related to discovering the needed Endpoints. **/ @JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) public class Discovery { /** ATTRIBUTES **/ @@ -73,14 +75,17 @@ public static class Endpoint { String documentation; @JsonProperty("resourceId") String resourceId; + @JsonProperty("timeToLive") + String timeToLive; /** CONSTRUCTOR(S) **/ - public Endpoint(String type, String description, String endpointAddress, String documentation, String resourceId) { + public Endpoint(String type, String description, String endpointAddress, String documentation, String resourceId, String timeToLive) { this.type = type; this.description = description; this.endpointAddress = endpointAddress; this.documentation = documentation; this.resourceId = resourceId; + this.timeToLive = timeToLive; } public Endpoint() { } @@ -121,5 +126,13 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + @SuppressWarnings("Unused") + public String getTimeToLive() { + return timeToLive; + } + @SuppressWarnings("Unused") + public void setTimeToLive(String timeToLive) { + this.timeToLive = timeToLive; + } } } diff --git a/src/assets/MOCK/CX:XYZ78901:BAT-XYZ789.json b/src/assets/MOCK/BAT-XYZ789.json similarity index 100% rename from src/assets/MOCK/CX:XYZ78901:BAT-XYZ789.json rename to src/assets/MOCK/BAT-XYZ789.json