Skip to content

feat: Add pagination to GET /api/packages endpoints (apn-qdmku)#298

Merged
paulvanbrenk merged 5 commits intomainfrom
merge/apn-oqyba3
Feb 16, 2026
Merged

feat: Add pagination to GET /api/packages endpoints (apn-qdmku)#298
paulvanbrenk merged 5 commits intomainfrom
merge/apn-oqyba3

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Adds limit/offset pagination to GET /api/packages and GET /api/packages/{owner} endpoints
  • Default limit: 20, max: 100, with input clamping for safety
  • Returns PaginatedResponse<T> with items, total count, limit, and offset
  • Results ordered by package name for consistent pagination

Test plan

  • All 395 tests pass (dotnet test PatchNotes.slnx) — 3 new pagination tests
  • Clean rebase onto current main

MR: apn-oqyba3 | Bead: apn-qdmku | Worker: capable

paulvanbrenk and others added 3 commits February 16, 2026 11:26
…r} (apn-qdmku)

Both endpoints now accept optional limit and offset query parameters and
return a paginated response with items, total, limit, and offset fields.
Defaults to limit=20, offset=0 with a max limit of 100.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pass undefined as params arg to useGetPackages/useGetPackagesByOwner
since orval now generates a params argument for pagination. Extract
.items from the paginated response wrapper. Update mock handler to
return PaginatedResponse shape.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paulvanbrenk paulvanbrenk merged commit 1558a2b into main Feb 16, 2026
4 checks passed
@paulvanbrenk paulvanbrenk deleted the merge/apn-oqyba3 branch February 16, 2026 16:39
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