Skip to content

Add document list pagination#184

Merged
suguanYang merged 4 commits into
mainfrom
fix/wangbinqi/document-list-pagination
Jun 30, 2026
Merged

Add document list pagination#184
suguanYang merged 4 commits into
mainfrom
fix/wangbinqi/document-list-pagination

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • Add page and page_size query params to GET /v1/documents
  • Return document-list pagination metadata matching the chunk-list response style
  • Add a count query and paged document query ordered by updated_at desc, document_id asc
  • Cover default and second-page behavior in document contract tests

Verification

  • uv run pytest apps/api/tests/contract/test_documents_contract.py -q
  • make lint
  • make typecheck
  • git diff --check

@suguanYang suguanYang merged commit d06e300 into main Jun 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant