{"action":"created","issue":{"url":"https://api.github.com/repos/manyminds/api2go/issues/184","labels_url":"https://api.github.com/repos/manyminds/api2go/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/manyminds/api2go/issues/184/comments","events_url":"https://api.github.com/repos/manyminds/api2go/issues/184/events","html_url":"https://github.com/manyminds/api2go/issues/184","id":109018893,"number":184,"title":"Total record count for pagination","user":{"login":"hnakamur","id":19299,"avatar_url":"https://avatars.githubusercontent.com/u/19299?v=3","gravatar_id":"","url":"https://api.github.com/users/hnakamur","html_url":"https://github.com/hnakamur","followers_url":"https://api.github.com/users/hnakamur/followers","following_url":"https://api.github.com/users/hnakamur/following{/other_user}","gists_url":"https://api.github.com/users/hnakamur/gists{/gist_id}","starred_url":"https://api.github.com/users/hnakamur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnakamur/subscriptions","organizations_url":"https://api.github.com/users/hnakamur/orgs","repos_url":"https://api.github.com/users/hnakamur/repos","events_url":"https://api.github.com/users/hnakamur/events{/privacy}","received_events_url":"https://api.github.com/users/hnakamur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T05:50:19Z","updated_at":"2015-09-30T07:00:49Z","closed_at":null,"body":"I would like the total record count at \"links.self.meta.count\" or somewhere when I use pagination.\r\nhttp://jsonapi.org/format/#document-links\r\n\r\nAn example:\r\n\r\n```\r\n  \"links\": {\r\n    \"self\": {\r\n      \"href\": \"/v0/users?page[offset]=0&page[limit]=10\",\r\n      \"meta\": {\r\n        \"count\": 22\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\nHow can I achieve that?\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/manyminds/api2go/issues/comments/144309157","html_url":"https://github.com/manyminds/api2go/issues/184#issuecomment-144309157","issue_url":"https://api.github.com/repos/manyminds/api2go/issues/184","id":144309157,"user":{"login":"wwwdata","id":818880,"avatar_url":"https://avatars.githubusercontent.com/u/818880?v=3","gravatar_id":"","url":"https://api.github.com/users/wwwdata","html_url":"https://github.com/wwwdata","followers_url":"https://api.github.com/users/wwwdata/followers","following_url":"https://api.github.com/users/wwwdata/following{/other_user}","gists_url":"https://api.github.com/users/wwwdata/gists{/gist_id}","starred_url":"https://api.github.com/users/wwwdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwwdata/subscriptions","organizations_url":"https://api.github.com/users/wwwdata/orgs","repos_url":"https://api.github.com/users/wwwdata/repos","events_url":"https://api.github.com/users/wwwdata/events{/privacy}","received_events_url":"https://api.github.com/users/wwwdata/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T07:00:49Z","updated_at":"2015-09-30T07:00:49Z","body":"do you mean when using the `PaginatedFindAll` method? So we are talking about a top-level `links` object?\r\n\r\nThis will generate these pagination links automatically for you\r\n\r\n```json\r\n{\r\n  \"links\": {\r\n    \"first\": \"http://localhost:31415/v0/users?page[number]=1&page[size]=2\",\r\n    \"last\": \"http://localhost:31415/v0/users?page[number]=5&page[size]=2\",\r\n    \"next\": \"http://localhost:31415/v0/users?page[number]=3&page[size]=2\",\r\n    \"prev\": \"http://localhost:31415/v0/users?page[number]=1&page[size]=2\"\r\n  },\r\n  \"data\": [...]\r\n}\r\n```\r\n\r\nhowever, like you already noticed, there is no additional meta data like the total count at the moment. We have another ticket #136 which is about setting `links` with `meta` information into the top-level document and also in the `relationships` object. "}}