Gemini Docs
  • Gemini Overview
  • 🎯Use cases & Benefits
  • 🚴‍♂️Getting Started
  • Backend Module
    • Overview
    • Getting Started
      • REST API - Micronaut MongoDB
    • Rest API
      • Basic CRUD
        • POST /data/{entity}
        • GET /data/{entity}/{id}
        • PUT /data/{entity}/{id}
        • PATCH /data/{entity}/{id}
        • DELETE /data/{entity}/{id}
      • Getting Data
        • GET All Data
        • Pagination
        • Filters
        • Sorting
      • Rest Configuration
        • Big Entities
        • Reference
    • The Schema (DDD)
      • Entities
      • Fields
        • String
        • Number
        • Boolean
        • Date & Time
        • Enum & Select
        • Object
        • Array
        • Dictionary
    • Data Drivers
Powered by GitBook
On this page
  • Request
  • Endpoint
  1. Backend Module
  2. Rest API
  3. Getting Data

Pagination

To GET entity data in a paginated way

PreviousGET All DataNextFilters

Last updated 3 years ago

This API is extremely useful when you have entities with a lot of records and you want to retrive data in batch, maybe with or .

Request

Endpoint

GET <base_url>/data/{entity}?start={start}&limit={limit}

{entity} is the Entity name according to the name provided in the schema

{limit} is the max records returned from the api

{start} you can control when to start to read

With a combination of start and limit you can navigate the entity with a pagination strategy where the limit parameter is the page size and the start is used to skip already read records.

filters
sorters