seqeralabs/nf-tower

API endpoint pagination key 'max' needed for tasks

combiz opened this issue · 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).

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)

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