{"action":"created","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3068","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3068/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3068/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3068/events","html_url":"https://github.com/tomchristie/django-rest-framework/pull/3068","id":90431151,"number":3068,"title":"Cursor pagination page size","user":{"login":"homm","id":128982,"avatar_url":"https://avatars.githubusercontent.com/u/128982?v=3","gravatar_id":"","url":"https://api.github.com/users/homm","html_url":"https://github.com/homm","followers_url":"https://api.github.com/users/homm/followers","following_url":"https://api.github.com/users/homm/following{/other_user}","gists_url":"https://api.github.com/users/homm/gists{/gist_id}","starred_url":"https://api.github.com/users/homm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homm/subscriptions","organizations_url":"https://api.github.com/users/homm/orgs","repos_url":"https://api.github.com/users/homm/repos","events_url":"https://api.github.com/users/homm/events{/privacy}","received_events_url":"https://api.github.com/users/homm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/labels/Needs%20design%20decision","name":"Needs design decision","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-23T16:21:56Z","updated_at":"2015-06-24T09:24:29Z","closed_at":"2015-06-23T21:01:01Z","pull_request":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3068","html_url":"https://github.com/tomchristie/django-rest-framework/pull/3068","diff_url":"https://github.com/tomchristie/django-rest-framework/pull/3068.diff","patch_url":"https://github.com/tomchristie/django-rest-framework/pull/3068.patch"},"body":"`page_size` customization on per query basis through `page_size_query_param` and `max_page_size` parameters.\r\n\r\nSpin-off of #3033"},"comment":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments/114802775","html_url":"https://github.com/tomchristie/django-rest-framework/pull/3068#issuecomment-114802775","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3068","id":114802775,"user":{"login":"homm","id":128982,"avatar_url":"https://avatars.githubusercontent.com/u/128982?v=3","gravatar_id":"","url":"https://api.github.com/users/homm","html_url":"https://github.com/homm","followers_url":"https://api.github.com/users/homm/followers","following_url":"https://api.github.com/users/homm/following{/other_user}","gists_url":"https://api.github.com/users/homm/gists{/gist_id}","starred_url":"https://api.github.com/users/homm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homm/subscriptions","organizations_url":"https://api.github.com/users/homm/orgs","repos_url":"https://api.github.com/users/homm/repos","events_url":"https://api.github.com/users/homm/events{/privacy}","received_events_url":"https://api.github.com/users/homm/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T09:24:29Z","updated_at":"2015-06-24T09:24:29Z","body":"> When providing cursored pagination you typically don't want to provide for clients modifying the paging query parameters\r\n\r\nWhy do you think so? Look at any popular service: [Twitter](https://dev.twitter.com/rest/reference/get/statuses/user_timeline), [Instagram](https://instagram.com/developer/endpoints/users/#get_users_feed), [Google Plus](https://developers.google.com/+/api/latest/activities/list) and so on.\r\n\r\n> and you're typically trying to restrict the resulting database query\r\n\r\nThat is why there is `max_page_size`."}}