You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Update URL pagination endpoint to return results
Previously, it would always return 0 results, which was confusing. For testing purposes, it shouldn't matter that the results are repeated in this context.
After this change:
```console
$ curl -XGET 'http://localhost:8080/pagination/url?attempts=3'
{"numPages":0,"resultArray":[0,1,2,3,4,5,6,7,8],"next":"http://localhost:8080/pagination/url?attempts=2"}
$ curl -XGET 'http://localhost:8080/pagination/url?attempts=2'
{"numPages":0,"resultArray":[0,1,2,3,4,5],"next":"http://localhost:8080/pagination/url?attempts=1"}
$ curl -XGET 'http://localhost:8080/pagination/url?attempts=1'
{"numPages":0,"resultArray":[0,1,2]}
$ curl -XGET 'http://localhost:8080/pagination/url?attempts=0'
{"numPages":0,"resultArray":[]}
```
0 commit comments