The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
This release brings support for bi-directional pagination.
Bi-directional pagination is disabled by default. It can be turned on in pagination config:
```swift
//defalut parameters are limitMax: 25, defaultLimit: 10
let cursorPaginationConfig = CursorPaginationConfig(limitMax: 25, defaultLimit: 10, allowBackwardPagination: true)
```
When enabled, cursor page API response metadata would contain both next and previous cursors.
```json
{
"items": [
//your data collection here
],
"metadata": {
"next_cursor": "W3siZmllbGRLZXkiOiJhc3NldHNfW3RpY2tlcl0iLCJ2",
"prev_cursor": "dW3siZmllbGRLZXkiOiJhc3NldHNf2312RpY2tlcl0i3"
}
}
```
They can be used with `after` and `before`query parameters to request next and previous portions of collection.
Next portion:
```
https://api.yourservice.com/v1/stars?limit=10&after=W3siZmllbGRLZXkiOiJhc3NldHNfW3RpY2tlcl0iLCJ2YWx1Z...
```
Previous portion:
```
https://api.yourservice.com/v1/stars?limit=10&before=W3siZmllbGRLZXkiOiJhc3NldHNfW3RpY2tlcl0iLCJ2YWx1Z...
```
Fixed cursor pagination coding keys issue related to changes in Fluent model field paths
## What's Changed
* updated readme by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/30
* Update README.md by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/31
* Update README.md by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/33
* Fixed README.md by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/34
* Patch README.md by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/35
* fixed cursor pagination keys according to latest changes in fluent by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/36
* Fix Vapor dependencies versions to latest by @KazaiMazai in https://github.com/KazaiMazai/vapor-rest-kit/pull/37
**Full Changelog**: https://github.com/KazaiMazai/vapor-rest-kit/compare/2.0.0...2.0.2
Vapor dependency version fixed
Massive update of both internals and API.
Check out the docs as well as migration guide for more details.