Skip to content

При запросе /currencies?page[size]=10 для 11 элементов и более totalPages всегда возвращает 1 #103

@TokRus1980

Description

@TokRus1980

При запросе /currencies?page[size]=10 для 11 элементов totalPages возвращает 1 (должно быть 2).

http://127.0.0.1:8000/api/v1/currencies/
result:
"meta": {
"count": 11,
"totalPages": 1
}
}
http://127.0.0.1:8000/api/v1/currencies/?page%5Bsize%5D=10
result:
"meta": {
"count": 10,
"totalPages": 1
}
}

  1. Запрос: GET /api/v1/currencies?page[size]=10
  2. В БД 11 записей.
  3. В ответе meta: { totalPages: 1 } (ожидается 2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions