TSK-1666: Fixed QueryParameters of Rest Docs
By adding @JsonProperty to all parameters
This commit is contained in:
parent
0ebdb3095b
commit
fd761ee3ac
|
@ -16,6 +16,7 @@ public class ClassificationQueryFilterParameter
|
|||
implements QueryParameter<ClassificationQuery, Void> {
|
||||
|
||||
/** 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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,7 @@ public class QuerySortParameter<Q extends BaseQuery<?, ?>, 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<SortDirection> order;
|
||||
|
||||
// this is only necessary because spring-auto-rest-docs can't resolve Enum[] data types.
|
||||
|
|
|
@ -24,6 +24,7 @@ import pro.taskana.task.api.models.ObjectReference;
|
|||
public class TaskQueryFilterParameter implements QueryParameter<TaskQuery, Void> {
|
||||
|
||||
/** 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<TaskQuery, Void>
|
|||
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<TaskQuery, Void>
|
|||
*
|
||||
* <p>The format is ISO-8601.
|
||||
*/
|
||||
@JsonProperty("created")
|
||||
private final Instant[] created;
|
||||
|
||||
/**
|
||||
|
@ -166,6 +170,7 @@ public class TaskQueryFilterParameter implements QueryParameter<TaskQuery, Void>
|
|||
*
|
||||
* <p>The format is ISO-8601.
|
||||
*/
|
||||
@JsonProperty("claimed")
|
||||
private final Instant[] claimed;
|
||||
|
||||
/**
|
||||
|
@ -174,6 +179,7 @@ public class TaskQueryFilterParameter implements QueryParameter<TaskQuery, Void>
|
|||
*
|
||||
* <p>The format is ISO-8601.
|
||||
*/
|
||||
@JsonProperty("completed")
|
||||
private final Instant[] completed;
|
||||
|
||||
/**
|
||||
|
@ -202,6 +208,7 @@ public class TaskQueryFilterParameter implements QueryParameter<TaskQuery, Void>
|
|||
*
|
||||
* <p>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<TaskQuery, Void>
|
|||
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<TaskQuery, Void>
|
|||
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<TaskQuery, Void>
|
|||
*
|
||||
* <p>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<TaskQuery, Void>
|
|||
*
|
||||
* <p>This parameter can't be used together with 'due-from' or 'due-until'.
|
||||
*/
|
||||
@JsonProperty("due")
|
||||
private final Instant[] due;
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,7 @@ import pro.taskana.workbasket.api.WorkbasketType;
|
|||
public class WorkbasketQueryFilterParameter implements QueryParameter<WorkbasketQuery, Void> {
|
||||
|
||||
/** 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<Workbasket
|
|||
private final String[] nameLike;
|
||||
|
||||
/** Filter by the key of the workbasket. This is an exact match. */
|
||||
@JsonProperty("key")
|
||||
private final String[] key;
|
||||
|
||||
/**
|
||||
|
@ -34,6 +36,7 @@ public class WorkbasketQueryFilterParameter implements QueryParameter<Workbasket
|
|||
private final String[] keyLike;
|
||||
|
||||
/** Filter by the owner of the workbasket. This is an exact match. */
|
||||
@JsonProperty("owner")
|
||||
private final String[] owner;
|
||||
|
||||
/**
|
||||
|
@ -53,9 +56,11 @@ public class WorkbasketQueryFilterParameter implements QueryParameter<Workbasket
|
|||
private final String[] descriptionLike;
|
||||
|
||||
/** Filter by the domain of the workbasket. This is an exact match. */
|
||||
@JsonProperty("domain")
|
||||
private final String[] domain;
|
||||
|
||||
/** Filter by the type of the workbasket. This is an exact match. */
|
||||
@JsonProperty("type")
|
||||
private final WorkbasketType[] type;
|
||||
|
||||
/** Filter by the required permission for the workbasket. */
|
||||
|
|
Loading…
Reference in New Issue