add self to pagination links

This commit is contained in:
Bruno Bacarini
2015-08-14 14:03:08 -03:00
parent 59ae84baba
commit a41d90cce4
4 changed files with 33 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ ex:
"data": [
{
"type": "articles",
"id": "1",
"id": "3",
"attributes": {
"title": "JSON API paints my bikeshed!",
"body": "The shortest article. Ever.",
@@ -30,6 +30,7 @@ ex:
}
],
"links": {
"self": "http://example.com/articles?page[number]=3&page[size]=1",
"first": "http://example.com/articles?page[number]=1&page[size]=1",
"prev": "http://example.com/articles?page[number]=2&page[size]=1",
"next": "http://example.com/articles?page[number]=4&page[size]=1",