halilkocaoz / paquery

Simple extension to make requested query string (parameters) compatible with any pagination.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paquery

Simple extension for your API to make requested(IQueryCollection) query string(parameters) compatible with any pagination.

api-response

Usage: Code Example

// * Example
var pagination = Request.CreatePagination(totalPageCount: totalPageCount, currentPage: page, pageQueryKey: "page");

return Ok(new { pagination, movies = _movies });

Look at MoviesController.cs for detailed example.

About

Simple extension to make requested query string (parameters) compatible with any pagination.


Languages

Language:C# 100.0%