[WIP] Reworked the way the spoonaccular api response gets consumed
- Added pojos for jackson - Filtering unneeded information from spoonaccular response
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
package spoonaccular.models.recipe_information;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonPropertyOrder({
|
||||
"metric"
|
||||
})
|
||||
@Generated("jsonschema2pojo")
|
||||
public class Measures {
|
||||
|
||||
@JsonProperty("metric")
|
||||
private Metric metric;
|
||||
|
||||
@JsonProperty("metric")
|
||||
public Metric getMetric() {
|
||||
return metric;
|
||||
}
|
||||
|
||||
@JsonProperty("metric")
|
||||
public void setMetric(Metric metric) {
|
||||
this.metric = metric;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user