Skip to content

Pagination: Add package to manage pagination without using gorm

Marcos Huck requested to merge feature/pagination into master

Pagination needs to be added to different services, but the current implementation heavily relies on gorm.

This MR adds a new pagination package that manages pagination without depending on gorm. This package also include a set of unit and integration tests for using pagination with HTTP, that the previous implementation didn't have.

HTTP Response

X-Total-Count: [total_count]
Link: <[url]>; rel="first", <[url]>; rel="prev", <[url]>; rel="next", <[url]>; rel="last"
Edited by Marcos Huck

Merge request reports