seqeralabs / nf-tower

Nextflow Tower system
https://tower.nf
Mozilla Public License 2.0
144 stars 51 forks source link

API endpoint pagination key 'max' needed for tasks #325

Open combiz opened 2 years ago

combiz commented 2 years ago

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).

pditommaso commented 2 years ago

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

combiz commented 2 years ago

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