nf-tower icon indicating copy to clipboard operation
nf-tower copied to clipboard

API endpoint pagination key 'max' needed for tasks

Open combiz opened this issue 4 years ago • 2 comments

The API endpoint for tasks (https://tower.nf/openapi/index.html#get-/workflow/-workflowId-/tasks) paginates the results, returning the first ten records. However, there is no 'max' key available for this endpoint to control the number of records returned, as implemented in other endpoints (e.g. https://tower.nf/openapi/index.html#get-/workflow).

combiz avatar Oct 25 '21 13:10 combiz

Thanks for reporting, think here the problem is the docs, there are actually those params:

  • start: initial offset
  • length: max number of record returned (default: 10, max: 100)

pditommaso avatar Oct 25 '21 14:10 pditommaso

Excellent, thanks, yes these params are not in the docs.

combiz avatar Oct 25 '21 16:10 combiz