Skip to content

feat(api): standardize pagination and list response structures#70

Merged
allisson merged 1 commit intomainfrom
listing-pattern
Feb 26, 2026
Merged

feat(api): standardize pagination and list response structures#70
allisson merged 1 commit intomainfrom
listing-pattern

Conversation

@allisson
Copy link
Owner

  • Extracted common offset and limit query parameter parsing into a centralized httputil.ParsePagination helper function for consistency.
  • Applied the new pagination utility across all listing handlers (auth, tokenization, and transit domains).
  • Refactored list response DTOs (e.g., ListClientsResponse, ListAuditLogsResponse, ListTokenizationKeysResponse) to utilize a unified Data array field, replacing domain-specific names (Clients, AuditLogs, Items).
  • Updated the CLI application name from app to secrets in cmd/app/main.go along with a more descriptive usage string.
  • Bumped project version to v0.17.0 in cmd/app/main.go, CHANGELOG.md, RELEASES.md, and compatibility-matrix.md.
  • Updated project documentation (README.md, docs/, openapi.yaml) and integration tests to reflect the new Data payload structure and updated CLI metadata.

- Extracted common `offset` and `limit` query parameter parsing into a centralized `httputil.ParsePagination` helper function for consistency.
- Applied the new pagination utility across all listing handlers (`auth`, `tokenization`, and `transit` domains).
- Refactored list response DTOs (e.g., `ListClientsResponse`, `ListAuditLogsResponse`, `ListTokenizationKeysResponse`) to utilize a unified `Data` array field, replacing domain-specific names (`Clients`, `AuditLogs`, `Items`).
- Updated the CLI application name from `app` to `secrets` in cmd/app/main.go along with a more descriptive usage string.
- Bumped project version to `v0.17.0` in cmd/app/main.go, `CHANGELOG.md`, `RELEASES.md`, and `compatibility-matrix.md`.
- Updated project documentation (`README.md`, `docs/`, `openapi.yaml`) and integration tests to reflect the new `Data` payload structure and updated CLI metadata.
@allisson allisson merged commit 843b2be into main Feb 26, 2026
2 checks passed
@allisson allisson deleted the listing-pattern branch February 26, 2026 01:05
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