Skip to content

Commit 8dfb3f5

Browse files
Fixed multiple typos rest API docu and add support for withoutDueDate in task queries (#4212)
1 parent 3ebb1a7 commit 8dfb3f5

49 files changed

Lines changed: 137 additions & 77 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/flowable-app-engine-rest/src/main/java/org/flowable/app/rest/service/api/repository/AppDefinitionCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class AppDefinitionCollectionResource {
6666
@Autowired(required=false)
6767
protected AppRestApiInterceptor restApiInterceptor;
6868

69-
@ApiOperation(value = "List of app definitions", nickname = "listAppDefinitions", tags = { "App Definitions" })
69+
@ApiOperation(value = "List of app definitions", nickname = "listAppDefinitions", tags = { "App Definitions" }, notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
7070
@ApiImplicitParams({
7171
@ApiImplicitParam(name = "category", dataType = "string", value = "Only return app definitions with the given category.", paramType = "query"),
7272
@ApiImplicitParam(name = "categoryLike", dataType = "string", value = "Only return app definitions with a category like the given value.", paramType = "query"),

modules/flowable-app-engine-rest/src/main/java/org/flowable/app/rest/service/api/repository/AppDeploymentCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class AppDeploymentCollectionResource {
8080
@Autowired(required=false)
8181
protected AppRestApiInterceptor restApiInterceptor;
8282

83-
@ApiOperation(value = "List of App Deployments", nickname = "listAppDeployments", tags = { "App Deployments" })
83+
@ApiOperation(value = "List of App Deployments", nickname = "listAppDeployments", tags = { "App Deployments" }, notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
8484
@ApiImplicitParams({
8585
@ApiImplicitParam(name = "name", dataType = "string", value = "Only return app deployments with the given name.", paramType = "query"),
8686
@ApiImplicitParam(name = "nameLike", dataType = "string", value = "Only return app deployments with a name like the given name.", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/history/caze/HistoricCaseInstanceCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
@Api(tags = { "History Case" }, authorizations = { @Authorization(value = "basicAuth") })
4747
public class HistoricCaseInstanceCollectionResource extends HistoricCaseInstanceBaseResource {
4848

49-
@ApiOperation(value = "List of historic case instances", tags = { "History Case" }, nickname = "listHistoricCaseInstances")
49+
@ApiOperation(value = "List of historic case instances", tags = { "History Case" }, nickname = "listHistoricCaseInstances", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
5050
@ApiImplicitParams({
5151
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "An id of the historic case instance.", paramType = "query"),
5252
@ApiImplicitParam(name = "caseInstanceIds", dataType = "string", value = "Only return historic case instances with the given comma-separated ids.", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/history/task/HistoricTaskInstanceCollectionResource.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
@Api(tags = { "History Task" }, authorizations = { @Authorization(value = "basicAuth") })
4040
public class HistoricTaskInstanceCollectionResource extends HistoricTaskInstanceBaseResource {
4141

42-
@ApiOperation(value = "List historic task instances", tags = { "History Task" }, nickname = "listHistoricTaskInstances")
42+
@ApiOperation(value = "List historic task instances", tags = { "History Task" }, nickname = "listHistoricTaskInstances", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
4343
@ApiImplicitParams({
4444
@ApiImplicitParam(name = "taskId", dataType = "string", value = "An id of the historic task instance.", paramType = "query"),
4545
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "The case instance id of the historic task instance.", paramType = "query"),
@@ -226,6 +226,10 @@ public DataResponse<HistoricTaskInstanceResponse> getHistoricProcessInstances(@A
226226
queryRequest.setDueDateBefore(RequestUtil.getDate(allRequestParams, "dueDateBefore"));
227227
}
228228

229+
if (allRequestParams.containsKey("withoutDueDate") && Boolean.parseBoolean(allRequestParams.get("withoutDueDate"))) {
230+
queryRequest.setWithoutDueDate(Boolean.TRUE);
231+
}
232+
229233
if (allRequestParams.get("taskCreatedOn") != null) {
230234
queryRequest.setTaskCreatedOn(RequestUtil.getDate(allRequestParams, "taskCreatedOn"));
231235
}

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/history/variable/HistoricVariableInstanceCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@Api(tags = { "History" }, authorizations = { @Authorization(value = "basicAuth") })
3737
public class HistoricVariableInstanceCollectionResource extends HistoricVariableInstanceBaseResource {
3838

39-
@ApiOperation(value = "List of historic variable instances", tags = { "History" }, nickname = "listHistoricVariableInstances")
39+
@ApiOperation(value = "List of historic variable instances", tags = { "History" }, nickname = "listHistoricVariableInstances", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
4040
@ApiImplicitParams({
4141
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "The case instance id of the historic variable instance.", paramType = "query"),
4242
@ApiImplicitParam(name = "taskId", dataType = "string", value = "The task id of the historic variable instance.", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/management/DeadLetterJobCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class DeadLetterJobCollectionResource {
5555
@Autowired(required=false)
5656
protected CmmnRestApiInterceptor restApiInterceptor;
5757

58-
@ApiOperation(value = "List deadletter jobs", tags = { "Jobs" }, nickname = "listDeadLetterJobs")
58+
@ApiOperation(value = "List deadletter jobs", tags = { "Jobs" }, nickname = "listDeadLetterJobs", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
5959
@ApiImplicitParams({
6060
@ApiImplicitParam(name = "id", dataType = "string", value = "Only return job with the given id", paramType = "query"),
6161
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "Only return jobs part of a case with the given id", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/management/HistoryJobCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class HistoryJobCollectionResource {
5252
@Autowired(required=false)
5353
protected CmmnRestApiInterceptor restApiInterceptor;
5454

55-
@ApiOperation(value = "List history jobs", tags = { "Jobs" }, nickname = "listDeadLetterJobs")
55+
@ApiOperation(value = "List history jobs", tags = { "Jobs" }, nickname = "listDeadLetterJobs", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
5656
@ApiImplicitParams({
5757
@ApiImplicitParam(name = "id", dataType = "string", value = "Only return the job with the given id", paramType = "query"),
5858
@ApiImplicitParam(name = "withException", dataType = "boolean", value = "If true, only return jobs for which an exception occurred while executing it. If false, this parameter is ignored.", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/management/JobCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class JobCollectionResource {
7373
protected CmmnEngineConfiguration cmmnEngineConfiguration;
7474

7575
// Fixme documentation & real parameters
76-
@ApiOperation(value = "List jobs", tags = { "Jobs" }, nickname = "listJobs")
76+
@ApiOperation(value = "List jobs", tags = { "Jobs" }, nickname = "listJobs", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
7777
@ApiImplicitParams({
7878
@ApiImplicitParam(name = "id", dataType = "string", value = "Only return job with the given id", paramType = "query"),
7979
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "Only return jobs part of a case with the given id", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/management/SuspendedJobCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class SuspendedJobCollectionResource {
5656
protected CmmnRestApiInterceptor restApiInterceptor;
5757

5858
// Fixme documentation & real parameters
59-
@ApiOperation(value = "List suspended jobs", tags = { "Jobs" }, nickname = "listSuspendedJobs")
59+
@ApiOperation(value = "List suspended jobs", tags = { "Jobs" }, nickname = "listSuspendedJobs", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
6060
@ApiImplicitParams({
6161
@ApiImplicitParam(name = "id", dataType = "string", value = "Only return job with the given id", paramType = "query"),
6262
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "Only return jobs part of a case with the given id", paramType = "query"),

modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/management/TimerJobCollectionResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class TimerJobCollectionResource {
5656
protected CmmnRestApiInterceptor restApiInterceptor;
5757

5858
// Fixme documentation & real parameters
59-
@ApiOperation(value = "List timer jobs", tags = { "Jobs" }, nickname = "listTimerJobs")
59+
@ApiOperation(value = "List timer jobs", tags = { "Jobs" }, nickname = "listTimerJobs", notes = "For all 'Like' parameters the '%' wildcard character must be URL-encoded as '%25' (for example '?nameLike=acme%25' to match names starting with 'acme').")
6060
@ApiImplicitParams({
6161
@ApiImplicitParam(name = "id", dataType = "string", value = "Only return job with the given id", paramType = "query"),
6262
@ApiImplicitParam(name = "caseInstanceId", dataType = "string", value = "Only return jobs part of a case with the given id", paramType = "query"),

0 commit comments

Comments
 (0)