json-api-0.1.4.0: Utilities for generating JSON-API payloads

Safe HaskellNone
LanguageHaskell2010

Network.JSONApi.Pagination

Synopsis

Documentation

data Pagination Source #

Wrapper type for the various components of pagination being page size, page index and the number of resources in total.

newtype PageIndex Source #

Constructors

PageIndex 

Fields

Instances
Show PageIndex Source # 
Instance details

Defined in Network.JSONApi.Pagination

newtype PageSize Source #

We can specify limits on the number of rows we would like back from the database

Constructors

PageSize 

Fields

Instances
Show PageSize Source # 
Instance details

Defined in Network.JSONApi.Pagination

data Strategy Source #

Pagination strategies are commonly implemented by the server of which Page and Offset are commonly used.

mkPaginationLinks :: Strategy -> URL -> Pagination -> Links Source #

Helper function to build relative links for a collection of resources of type ResourceEntity.

This helper function assumes that the first page is always page 0.