include query_parameters on pagination links as well

This commit is contained in:
Bruno Bacarini
2015-08-10 12:26:16 -03:00
parent e62a7d6f34
commit 7be25fef14
6 changed files with 71 additions and 44 deletions

View File

@@ -30,10 +30,10 @@ ex:
}
],
"links": {
"first": "http://example.com/articles?page=1&per_page=1",
"prev": "http://example.com/articles?page=2&per_page=1",
"next": "http://example.com/articles?page=4&per_page=1",
"last": "http://example.com/articles?page=13&per_page=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",
"last": "http://example.com/articles?page[number]=13&page[size]=1"
}
}
```