flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

Error in API docs?

Open verheyenkoen opened this issue 6 months ago • 0 comments

Describe the bug The REST API docs for the List of process definitions API state the following for the "latest" parameter:

Only return the latest process definition versions. Can only be used together with 'key', 'keyLike', 'resourceName' and 'resourceNameLike' parameters, using any other parameter will result in a 400-response.

This does not seem to be true in practice. If you omit those parameters but still use "latest=true" you do get the latest version of each process definition with an HTTP error 200 status code.

I assume the "Latest version" filter in Flowable UI > Admin > Process Engine > Definitions uses the same API and there it also works.

Expected behavior I guess if this is known to consistently work, the docs should be adapted. If not, I guess responding with an actual HTTP 4** error response would be better.

Additional context Tested against Flowable 6.7.2 and 6.8.0.

verheyenkoen avatar Dec 19 '23 13:12 verheyenkoen