diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/classification/rest/ClassificationQueryFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/classification/rest/ClassificationQueryFilterParameter.java index 001cc5328..37447b533 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/classification/rest/ClassificationQueryFilterParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/classification/rest/ClassificationQueryFilterParameter.java @@ -16,6 +16,7 @@ public class ClassificationQueryFilterParameter implements QueryParameter { /** Filter by the name of the classification. This is an exact match. */ + @JsonProperty("name") private final String[] name; /** @@ -27,15 +28,19 @@ public class ClassificationQueryFilterParameter private final String[] nameLike; /** Filter by the key of the classification. This is an exact match. */ + @JsonProperty("key") private final String[] key; /** Filter by the category of the classification. This is an exact match. */ + @JsonProperty("category") private final String[] category; /** Filter by the domain of the classification. This is an exact match. */ + @JsonProperty("domain") private final String[] domain; /** Filter by the type of the classification. This is an exact match. */ + @JsonProperty("type") private final String[] type; /** diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/common/rest/QuerySortParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/common/rest/QuerySortParameter.java index 2a7808bd1..c9c06fc67 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/common/rest/QuerySortParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/common/rest/QuerySortParameter.java @@ -21,6 +21,7 @@ public class QuerySortParameter, S extends QuerySortBy * of sort-by and order declarations have to match. Alternatively the value can be omitted. If * done so the default sort order (ASCENDING) will be applied to every sort-by value. */ + @JsonProperty("order") private final List order; // this is only necessary because spring-auto-rest-docs can't resolve Enum[] data types. diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/task/rest/TaskQueryFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/task/rest/TaskQueryFilterParameter.java index 5cdc4a3f4..fbc086a6b 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/task/rest/TaskQueryFilterParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/task/rest/TaskQueryFilterParameter.java @@ -24,6 +24,7 @@ import pro.taskana.task.api.models.ObjectReference; public class TaskQueryFilterParameter implements QueryParameter { /** Filter by the name of the task. This is an exact match. */ + @JsonProperty("name") private final String[] name; /** * Filter by the name of the task. This results in a substring search (% is appended to the front @@ -34,9 +35,11 @@ public class TaskQueryFilterParameter implements QueryParameter private final String[] nameLike; /** Filter by the priority of the task. This is an exact match. */ + @JsonProperty("priority") private final int[] priority; /** Filter by the task state. This is an exact match. */ + @JsonProperty("state") private final TaskState[] state; /** Filter by the classification id of the task. This is an exact match. */ @@ -138,6 +141,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

The format is ISO-8601. */ + @JsonProperty("created") private final Instant[] created; /** @@ -166,6 +170,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

The format is ISO-8601. */ + @JsonProperty("claimed") private final Instant[] claimed; /** @@ -174,6 +179,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

The format is ISO-8601. */ + @JsonProperty("completed") private final Instant[] completed; /** @@ -202,6 +208,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

The format is ISO-8601. */ + @JsonProperty("modified") private final Instant[] modified; /** Filter by the classification category of the task. This is an exact match. */ @@ -280,9 +287,11 @@ public class TaskQueryFilterParameter implements QueryParameter private final String[] workbasketKeys; /** Filter by domain of the task. This is an exact match. */ + @JsonProperty("domain") private final String domain; /** Filter by owner of the task. This is an exact match. */ + @JsonProperty("owner") private final String[] owner; /** @@ -294,6 +303,7 @@ public class TaskQueryFilterParameter implements QueryParameter private final String[] ownerLike; /** Filter by creator of the task. This is an exact match. */ + @JsonProperty("creator") private final String[] creator; /** @@ -383,6 +393,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

This parameter can't be used together with 'planned-from' or 'planned-until'. */ + @JsonProperty("planned") private final Instant[] planned; /** @@ -443,6 +454,7 @@ public class TaskQueryFilterParameter implements QueryParameter * *

This parameter can't be used together with 'due-from' or 'due-until'. */ + @JsonProperty("due") private final Instant[] due; /** diff --git a/rest/taskana-rest-spring/src/main/java/pro/taskana/workbasket/rest/WorkbasketQueryFilterParameter.java b/rest/taskana-rest-spring/src/main/java/pro/taskana/workbasket/rest/WorkbasketQueryFilterParameter.java index a3263905d..481c1e2ad 100644 --- a/rest/taskana-rest-spring/src/main/java/pro/taskana/workbasket/rest/WorkbasketQueryFilterParameter.java +++ b/rest/taskana-rest-spring/src/main/java/pro/taskana/workbasket/rest/WorkbasketQueryFilterParameter.java @@ -12,6 +12,7 @@ import pro.taskana.workbasket.api.WorkbasketType; public class WorkbasketQueryFilterParameter implements QueryParameter { /** Filter by the name of the workbasket. This is an exact match. */ + @JsonProperty("name") private final String[] name; /** @@ -23,6 +24,7 @@ public class WorkbasketQueryFilterParameter implements QueryParameter