Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
horizon 1.1.3 documentation
Logo

Horizon

  • Data.Horizon

High-level design

  • Entities
  • Role Permissions

Backend

  • Install & run backend
  • Architecture
  • Configuration
    • Database settings
    • Logging settings
    • Setup monitoring
    • CORS settings
    • Serving static files
    • OpenAPI settings
    • Enabling debug
  • Auth Providers
    • Dummy Auth provider
    • LDAP Auth provider
    • LDAP Cached Auth provider
    • Custom Auth provider
  • OpenAPI specification
  • Scripts
    • Manage Admins

Client

  • Install client
  • Sync client
  • Auth
  • Schemas
    • Namespace-related schemas
    • Namespace history-related schemas
    • HWM-related schemas
    • HWM history-related schemas
    • Permissions-related schemas
    • User-related schemas
    • Ping-related schemas
    • Pagination-related schemas
  • Exceptions

Development

  • Changelog
    • 1.1.3 (2025-10-29)
    • 1.1.2 (2025-04-07)
    • 1.1.1 (2025-01-28)
    • 1.0.2 (2024-11-21)
    • 1.0.1 (2024-06-27)
    • 1.0.0 (2024-06-10)
    • 0.2.1 (2024-05-29)
    • 0.2.0 (2024-05-15)
    • 0.1.3 (2024-05-02)
    • 0.1.2 (2024-04-02)
    • 0.1.1 (2024-03-27)
    • 0.0.13 (2024-02-13)
    • 0.0.12 (2024-01-24)
    • 0.0.11 (2024-01-22)
    • 0.0.10 (2024-01-22)
    • 0.0.9 (2024-01-19)
    • 0.0.8 (2024-01-18)
  • Contributing Guide
  • Security
Back to top
View this page

Pagination-related schemas¶

pydantic model horizon.commons.schemas.v1.pagination.PaginateQueryV1¶

Basic class with pagination query params.

field page: int = 1¶

Page number

Constraints:
  • gt = 0

field page_size: int = 20¶

Number of items per page

Constraints:
  • gt = 0

  • le = 50

pydantic model horizon.commons.schemas.v1.pagination.PageResponseV1¶

Page response.

field meta: PageMetaResponseV1 [Required]¶

Page metadata

field items: List[T] [Required]¶

Page content

classmethod from_pagination(pagination: Pagination)¶
pydantic model horizon.commons.schemas.v1.pagination.PageMetaResponseV1¶

Page metadata response.

field page: int [Required]¶

Page number

field page_size: int [Required]¶

Number of items per page

field total_count: int [Required]¶

Total number of items

field pages_count: int [Required]¶

Number of items returned in current page

field has_next: bool [Required]¶

Is there a next page

field has_previous: bool [Required]¶

Is there a next page

field next_page: int | None [Required]¶

Next page number, if any

field previous_page: int | None [Required]¶

Previous page number, if any

Next
Exceptions
Previous
Ping-related schemas
Copyright © 2023-2025 MTS PJSC
Made with Sphinx and @pradyunsg's Furo
Last updated on Mar 28, 2025
On this page
  • Pagination-related schemas
    • PaginateQueryV1
      • PaginateQueryV1.page
      • PaginateQueryV1.page_size
    • PageResponseV1
      • PageResponseV1.meta
      • PageResponseV1.items
      • PageResponseV1.from_pagination()
    • PageMetaResponseV1
      • PageMetaResponseV1.page
      • PageMetaResponseV1.page_size
      • PageMetaResponseV1.total_count
      • PageMetaResponseV1.pages_count
      • PageMetaResponseV1.has_next
      • PageMetaResponseV1.has_previous
      • PageMetaResponseV1.next_page
      • PageMetaResponseV1.previous_page