mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
include query_parameters on pagination links as well
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user