{"action":"created","issue":{"url":"https://api.github.com/repos/osuosl/timesync/issues/69","repository_url":"https://api.github.com/repos/osuosl/timesync","labels_url":"https://api.github.com/repos/osuosl/timesync/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/osuosl/timesync/issues/69/comments","events_url":"https://api.github.com/repos/osuosl/timesync/issues/69/events","html_url":"https://github.com/osuosl/timesync/issues/69","id":165374563,"number":69,"title":"Pagination for GET requests","user":{"login":"aaroncohen73","id":8020915,"avatar_url":"https://avatars.githubusercontent.com/u/8020915?v=3","gravatar_id":"","url":"https://api.github.com/users/aaroncohen73","html_url":"https://github.com/aaroncohen73","followers_url":"https://api.github.com/users/aaroncohen73/followers","following_url":"https://api.github.com/users/aaroncohen73/following{/other_user}","gists_url":"https://api.github.com/users/aaroncohen73/gists{/gist_id}","starred_url":"https://api.github.com/users/aaroncohen73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaroncohen73/subscriptions","organizations_url":"https://api.github.com/users/aaroncohen73/orgs","repos_url":"https://api.github.com/users/aaroncohen73/repos","events_url":"https://api.github.com/users/aaroncohen73/events{/privacy}","received_events_url":"https://api.github.com/users/aaroncohen73/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/osuosl/timesync/labels/backburner","name":"backburner","color":"fbca04"},{"url":"https://api.github.com/repos/osuosl/timesync/labels/feature","name":"feature","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-13T17:16:38Z","updated_at":"2016-07-14T17:15:37Z","closed_at":null,"body":"Also see [this issue](https://github.com/osuosl/timesync-node/issues/279)\r\n\r\nIt would be a very useful feature to be able to paginate GET requests (especially requests to the `/times` endpoint). In the previously mentioned issue, @LyonesGamer suggested that `?limit` and `?skip` parameters be added (to correspond to LIMIT and OFFSET queries on an SQL database). The behavior for these parameters might look something like this:\r\n\r\n`?limit=:numobjects`\r\n- Limits the number of objects returned to :numobjects\r\n- If `?skip` isn't specified, it defaults to 0\r\n\r\n`?skip=:toskip`\r\n- Returns objects after skipping :toskip objects\r\n- If `?limit` isn't specified, it defaults to all objects after :toskip objects\r\n\r\nFor ordering the objects for either of these parameters, it could be specified that the objects should be returned in order of creation date with the most recently created object first."},"comment":{"url":"https://api.github.com/repos/osuosl/timesync/issues/comments/232730952","html_url":"https://github.com/osuosl/timesync/issues/69#issuecomment-232730952","issue_url":"https://api.github.com/repos/osuosl/timesync/issues/69","id":232730952,"user":{"login":"mathuin","id":221823,"avatar_url":"https://avatars.githubusercontent.com/u/221823?v=3","gravatar_id":"","url":"https://api.github.com/users/mathuin","html_url":"https://github.com/mathuin","followers_url":"https://api.github.com/users/mathuin/followers","following_url":"https://api.github.com/users/mathuin/following{/other_user}","gists_url":"https://api.github.com/users/mathuin/gists{/gist_id}","starred_url":"https://api.github.com/users/mathuin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathuin/subscriptions","organizations_url":"https://api.github.com/users/mathuin/orgs","repos_url":"https://api.github.com/users/mathuin/repos","events_url":"https://api.github.com/users/mathuin/events{/privacy}","received_events_url":"https://api.github.com/users/mathuin/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T17:15:37Z","updated_at":"2016-07-14T17:15:37Z","body":"Personally, I am -1 to `?page=` -- let us not dictate to our user community how long their pages must be.\r\n\r\nAn absolutely unscientific survey:  reddit does this by ?count=X&after=tag, hacker news does this by ?p=X, facebook hides it from the user."}}
{"actor":{"display_login":"mathuin"}}