Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginated Data*-type models don't contain pagination info #6

Open
mirrorcult opened this issue Apr 23, 2022 · 0 comments
Open

Paginated Data*-type models don't contain pagination info #6

mirrorcult opened this issue Apr 23, 2022 · 0 comments

Comments

@mirrorcult
Copy link
Owner

Changing pagination options is still possible, I just didnt think this would be useful. SRC API says it looks like this (https://github.com/speedruncomorg/api/blob/master/version1/pagination.md):

{
  "data": [<etc>, <etc>, <etc>],
  "pagination": {
    "offset": 20,
    "max": 30,
    "size": 30,
    "links": [{
      "rel": "next",
      "uri": "https://www.speedrun.com/api/v1/[etc]?max=30&offset=50"
    }, {
      "rel": "prev",
      "uri": "https://www.speedrun.com/api/v1/[etc]?max=30"
    }]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant