Releases: KazaiMazai/vapor-rest-kit
Releases · KazaiMazai/vapor-rest-kit
v2.2.0
What's Changed
- Gitignore config fix by @KazaiMazai in #40
- Swift Concurrency Support by @KazaiMazai in #41
- Run-Tests-Workflow by @KazaiMazai in #42
- Added CI badge by @KazaiMazai in #43
- Update README.md by @KazaiMazai in #44
Full Changelog: 2.1.0...2.2.0
v2.1.0
This release brings support for bi-directional pagination.
Bi-directional pagination is disabled by default. It can be turned on in pagination config:
//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.
{
"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...
v2.0.2
Fixed cursor pagination coding keys issue related to changes in Fluent model field paths
What's Changed
- updated readme by @KazaiMazai in #30
- Update README.md by @KazaiMazai in #31
- Update README.md by @KazaiMazai in #33
- Fixed README.md by @KazaiMazai in #34
- Patch README.md by @KazaiMazai in #35
- fixed cursor pagination keys according to latest changes in fluent by @KazaiMazai in #36
- Fix Vapor dependencies versions to latest by @KazaiMazai in #37
Full Changelog: 2.0.0...2.0.2
v2.0.1
Vapor dependency version fixed
v2.0.0
Massive update of both internals and API.
Check out the docs as well as migration guide for more details.