Skip to main content

PaginatedResponse_GenreDto

Generic paginated response wrapper with HATEOAS links

data object[]required

The data items for this page

  • Array [
  • createdAtstring<date-time>required

    When the genre was created

    Example: 2024-01-01T00:00:00Z
    idstring<uuid>required

    Genre ID

    Example: 550e8400-e29b-41d4-a716-446655440010
    namestringrequired

    Genre name

    Example: Action
    seriesCountinteger,null<int64>nullable

    Number of series with this genre

    Possible values: >= 0

    Example: 42
  • ]
  • links objectrequired

    HATEOAS navigation links

    firststringrequired

    Link to the first page

    laststringrequired

    Link to the last page

    nextstring | nullnullable

    Link to the next page (null if on last page)

    prevstring | nullnullable

    Link to the previous page (null if on first page)

    selfstringrequired

    Link to the current page

    pageinteger<int64>required

    Current page number (1-indexed)

    Possible values: >= 0

    Example: 1
    pageSizeinteger<int64>required

    Number of items per page

    Possible values: >= 0

    Example: 50
    totalinteger<int64>required

    Total number of items across all pages

    Possible values: >= 0

    Example: 150
    totalPagesinteger<int64>required

    Total number of pages

    Possible values: >= 0

    Example: 3
    PaginatedResponse_GenreDto
    {
    "data": [
    {
    "createdAt": "2024-01-01T00:00:00Z",
    "id": "550e8400-e29b-41d4-a716-446655440010",
    "name": "Action",
    "seriesCount": 42
    }
    ],
    "links": {
    "first": "string",
    "last": "string",
    "next": "string",
    "prev": "string",
    "self": "string"
    },
    "page": 1,
    "pageSize": 50,
    "total": 150,
    "totalPages": 3
    }