Skip to content

Commit

Permalink
[HWKMETRICS-185] Add some Jackson annotations to base classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Negrea committed Aug 13, 2015
1 parent 102c225 commit 9b5d4be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package org.hawkular.metrics.api.jaxrs;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

Expand All @@ -25,6 +26,8 @@
*/
@ApiModel(description = "If REST-call returns other than success, detailed error is returned.")
public class ApiError {

@JsonProperty
private final String errorMsg;

public ApiError(String errorMsg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public class MetricDefinition {
@JsonProperty
private Integer dataRetention;

public MetricDefinition() {
}

@JsonCreator
public MetricDefinition(
@JsonProperty("id") String id,
Expand Down

0 comments on commit 9b5d4be

Please sign in to comment.