Skip to main content

Paging

Overview

Contains RESTful API paging contracts like CollectionResult, PagingFilter. Use this package when implementing RESTful APIs.

  • CollectionResult - special result containing collection of items and their count.
  • PagingFilter - filter containing page size and number.

Install

  • no dependencies

Changelog

  • 0.0.1.24128-dev
    • .NET 8 support
  • 0.0.1.23642-dev
  • 0.0.1.14309-dev

Example REST API with paging support

[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(CollectionResult<MyEntityModelSummary>))]
public async Task<IActionResult> GetLicenses([FromQuery] PagingFilter pagingFilter = default)
{
var result = await Facade.GetAllEntities(pagingFilter ?? new PagingFilter());
return Ok(result);
}