{"action":"opened","issue":{"url":"https://api.github.com/repos/RomekRJM/BubbleUpServer/issues/12","repository_url":"https://api.github.com/repos/RomekRJM/BubbleUpServer","labels_url":"https://api.github.com/repos/RomekRJM/BubbleUpServer/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/RomekRJM/BubbleUpServer/issues/12/comments","events_url":"https://api.github.com/repos/RomekRJM/BubbleUpServer/issues/12/events","html_url":"https://github.com/RomekRJM/BubbleUpServer/issues/12","id":158562985,"number":12,"title":"Paginated player scores","user":{"login":"RomekRJM","id":7995059,"avatar_url":"https://avatars.githubusercontent.com/u/7995059?v=3","gravatar_id":"","url":"https://api.github.com/users/RomekRJM","html_url":"https://github.com/RomekRJM","followers_url":"https://api.github.com/users/RomekRJM/followers","following_url":"https://api.github.com/users/RomekRJM/following{/other_user}","gists_url":"https://api.github.com/users/RomekRJM/gists{/gist_id}","starred_url":"https://api.github.com/users/RomekRJM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomekRJM/subscriptions","organizations_url":"https://api.github.com/users/RomekRJM/orgs","repos_url":"https://api.github.com/users/RomekRJM/repos","events_url":"https://api.github.com/users/RomekRJM/events{/privacy}","received_events_url":"https://api.github.com/users/RomekRJM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T16:44:30Z","updated_at":"2016-06-05T16:44:30Z","closed_at":null,"body":"scores/ endpoint should allow players to get paginated response, using cursor.\r\nscores/uuid/ should do the same, but displaying only players scores.\r\n\r\nCurrently returned response looks like this:\r\n\r\n```javascript\r\n[\r\n  {\r\n    \"played_on\": \"2816-04-30T16:06:14Z\",\r\n    \"recieved_on\": \"2016-05-01 23:02:17.599417+00:00\",\r\n    \"play_time\": 234,\r\n    \"altitude\": 555,\r\n    \"score\": 127,\r\n    \"registered_client\": \"a19b3f92-494f-4d22-a225-182af4f05261\"\r\n  }\r\n]\r\n```\r\n\r\nThere should be additional columns added, called score_rank and play_time_rank, which will be also added to endpoint, ex:\r\nscores/?order_by=playtime\r\nscores/uuid/?order_by=score\r\n\r\nOnly ordering by playtime ( ORDER BY altitude ASC, play_time DESC ) and by score ( ORDER BY score DESC ) would be supported.\r\nSample response:\r\n\r\nscores/?order_by=playtime\r\n\r\n```javascript\r\n[\r\n  {\r\n    \"played_on\": \"2016-04-30T16:06:14Z\",\r\n    \"recieved_on\": \"2016-05-01 23:02:17.599417+00:00\",\r\n    \"play_time\": 23234,\r\n    \"altitude\": 2000,\r\n    \"score\": 10,\r\n    \"score_rank\": 12,\r\n    \"play_time_rank\": 1,\r\n    \"registered_client\": \"a19b3f92-494f-4d22-a225-182af4f05261\"\r\n  },\r\n  {\r\n    \"played_on\": \"2016-04-30T16:06:14Z\",\r\n    \"recieved_on\": \"2016-05-01 23:02:17.599417+00:00\",\r\n    \"play_time\": 1234,\r\n    \"altitude\": 600,\r\n    \"score\": 127,\r\n    \"score_rank\": 1,\r\n    \"play_time_rank\": 2,\r\n    \"registered_client\": \"b19b3f92-494f-4d22-a225-182af4f05261\"\r\n  },\r\n  {\r\n    \"played_on\": \"2016-04-30T16:06:14Z\",\r\n    \"recieved_on\": \"2016-05-01 23:02:17.599417+00:00\",\r\n    \"play_time\": 234,\r\n    \"altitude\": 555,\r\n    \"score\": 19,\r\n    \"score_rank\": 8,\r\n    \"play_time_rank\": 3,\r\n    \"registered_client\": \"cccb3f92-494f-4d22-a225-182af4f05261\"\r\n  }\r\n]\r\n```\r\n\r\n"}}
{"actor":{"display_login":"RomekRJM"}}