diff --git a/src/main/java/com/codepine/api/testrail/TestRail.java b/src/main/java/com/codepine/api/testrail/TestRail.java index 4d87ed1..b38c1e0 100644 --- a/src/main/java/com/codepine/api/testrail/TestRail.java +++ b/src/main/java/com/codepine/api/testrail/TestRail.java @@ -571,6 +571,12 @@ public class List extends Request> { @JsonSerialize(using = ListToCsvSerializer.class) private java.util.List updatedBy; + @JsonView(List.class) + private Integer templateId; + + @JsonView(List.class) + private String refsFilter; + private List(int projectId, java.util.List caseFields) { super(config, Method.GET, String.format(REST_PATH, projectId, ""), new TypeReference>() { }); @@ -1596,6 +1602,9 @@ public class List extends Request> { @JsonSerialize(using = ListToCsvSerializer.class) private java.util.List suiteId; + @JsonView(List.class) + private String refsFilter; + private List(int projectId) { super(config, Method.GET, REST_PATH + projectId, new TypeReference>() { }); diff --git a/src/main/java/com/codepine/api/testrail/model/Case.java b/src/main/java/com/codepine/api/testrail/model/Case.java index f07a503..01ab14a 100644 --- a/src/main/java/com/codepine/api/testrail/model/Case.java +++ b/src/main/java/com/codepine/api/testrail/model/Case.java @@ -88,6 +88,9 @@ public class Case { private int suiteId; + @JsonView({TestRail.Cases.Add.class, TestRail.Cases.Update.class}) + private Integer templateId; + @JsonView({TestRail.Cases.Add.class, TestRail.Cases.Update.class}) @JsonIgnore private Map customFields; diff --git a/src/main/java/com/codepine/api/testrail/model/Run.java b/src/main/java/com/codepine/api/testrail/model/Run.java index 968af82..e0edc1e 100644 --- a/src/main/java/com/codepine/api/testrail/model/Run.java +++ b/src/main/java/com/codepine/api/testrail/model/Run.java @@ -111,4 +111,7 @@ public class Run { private int customStatus7Count; + + @JsonView({TestRail.Runs.Add.class, TestRail.Runs.Update.class, TestRail.Plans.Add.class, TestRail.Plans.AddEntry.class}) + private String refs; }