Skip to content

Commit

Permalink
Rename search hit according to Swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiobasile committed Oct 3, 2017
1 parent e9a893c commit 83361ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"type",
"id"
})
public class SearchHit {
public class Resource {

@JsonProperty("type")
private String type;
@JsonProperty("id")
private String id;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
private Map<String, Object> additionalProperties = new HashMap<>();

@JsonProperty("type")
public String getType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public class SearchAllResponse {
@JsonProperty("totalHits")
private Integer totalHits;
@JsonProperty("data")
private List<SearchHit> data = null;
private List<Resource> data = null;
@JsonIgnore
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
private Map<String, Object> additionalProperties = new HashMap<>();

@JsonProperty("status")
public String getStatus() {
Expand All @@ -49,12 +49,12 @@ public void setTotalHits(Integer totalHits) {
}

@JsonProperty("data")
public List<SearchHit> getData() {
public List<Resource> getData() {
return data;
}

@JsonProperty("data")
public void setData(List<SearchHit> data) {
public void setData(List<Resource> data) {
this.data = data;
}

Expand Down

0 comments on commit 83361ef

Please sign in to comment.