Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in API docs? #3806

Open
verheyenkoen opened this issue Dec 19, 2023 · 0 comments
Open

Error in API docs? #3806

verheyenkoen opened this issue Dec 19, 2023 · 0 comments

Comments

@verheyenkoen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant