developer-delphi-horse-paginate

Paginate JSON array responses in Horse-based APIs via X-Paginate and query parameters.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-paginate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-horse-paginate
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-horse-paginate_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-horse-paginate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This middleware pages JSON responses for Horse endpoints, enabling efficient delivery of large lists by returning paged results rather than the entire dataset.

Core Features & Use Cases

  • X-Paginate header for enabling server-side pagination on GET endpoints.
  • Query parameters limit and page to control page size and current page.
  • Standard response wrapper structure with docs, total, limit, page and pages to simplify client-side data handling.

Quick Start

Configure THorse to use the Paginate middleware on GET endpoints that return lists to enable automatic pagination.

Frequently Asked Questions about developer-delphi-horse-paginate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I paginate JSON responses in a Horse API?

You paginate JSON responses in a Horse API by applying a pagination middleware to GET endpoints returning lists, which slices large arrays into manageable server-side pages.

How do I control page size and current page for Horse JSON arrays?

Control page size and current page by passing limit and page query parameters in your GET request, allowing precise navigation of Horse JSON arrays.

What is the standard JSON response wrapper structure for paginated Horse endpoints?

The standard JSON response wrapper for paginated Horse endpoints includes docs, total, limit, page, and pages fields to simplify client-side data handling.

How do I enable server-side pagination on specific Horse GET endpoints?

Enable server-side pagination on specific Horse GET endpoints by including the X-Paginate header in your request, activating the pagination middleware.

Does Horse pagination work with existing JSON list endpoints?

Horse pagination works with existing JSON list endpoints by intercepting GET requests and wrapping the array output into the standard docs, total, limit, page, and pages structure.