runabol / piper

piper - a distributed workflow engine
Apache License 2.0
489 stars 86 forks source link

How to get more then 20 items in jobs list #47

Closed deskjet482 closed 4 years ago

deskjet482 commented 4 years ago

Hi

When i run: curl http://localhost:8080/jobs | jq .

I get a list of the last 20 jobs but i have 71 jobs. It says i have 4 pages worth. how can i get the next page?

Cheers, Alex

ccamel commented 4 years ago

Hi @deskjet482

According to JobsController implementation, you should be able to set the page with the query parameter p (starting from 1), like that:

curl "http://localhost:8080/jobs?p=2" | jq .
deskjet482 commented 4 years ago

Thanks