FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

При запросе `/currencies?page[size]=10` для 11 элементов и более `totalPages` всегда возвращает 1 · Issue #103 · mts-ai/FastAPI-JSONAPI · GitHub

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

Description

При запросе /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


    Back | FazBrowse Home | New Git URL