Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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":[]} ```
- Loading branch information