Skip to content

feat: add listing endpoints for secrets, transit, and tokenization keys#69

Merged
allisson merged 1 commit intomainfrom
list-endpoints
Feb 25, 2026
Merged

feat: add listing endpoints for secrets, transit, and tokenization keys#69
allisson merged 1 commit intomainfrom
list-endpoints

Conversation

@allisson
Copy link
Owner

This commit introduces comprehensive listing capabilities across all core cryptographic modules, supporting pagination via limit and offset query parameters.

Key additions:

  • Secrets Module:

    • Added GET /v1/secrets HTTP handler.
    • Implemented List usecase operations with metrics decorators.
    • Added List methods to both PostgreSQL and MySQL repositories.
    • Created ListSecretsResponse DTO for consistent API responses.
  • Transit Module:

    • Added GET /v1/transit/keys HTTP handler.
    • Implemented List usecase operations with metrics decorators.
    • Added List methods to both PostgreSQL and MySQL repositories.
    • Created ListTransitKeysResponse DTO.
  • Tokenization Module:

    • Added GET /v1/tokenization/keys HTTP handler.
    • Implemented List usecase operations with metrics decorators.
    • Added List methods to PostgreSQL and MySQL repositories.
    • Created ListTokenizationKeysResponse DTO.
  • Routing & Config:

    • Registered the new GET endpoints in internal/http/server.go.
    • Bumped application version to 0.16.0 in cmd/app/main.go.
  • Documentation & Release Prep:

    • Documented new routes, DTOs, and parameters in docs/openapi.yaml.
    • Updated API markdown documentation in docs/api/data/.
    • Updated CHANGELOG.md, docs/releases/RELEASES.md, and compatibility matrices.
    • Refreshed documentation metadata (docs/metadata.json).
  • Testing:

    • Maintained strict test coverage matching project guidelines.
    • Added fully-native integration tests for all new MySQL and PostgreSQL repository List methods.
    • Included unit tests for all new DTO mappers, usecases, and HTTP handlers.

This commit introduces comprehensive listing capabilities across all core
cryptographic modules, supporting pagination via `limit` and `offset`
query parameters.

Key additions:
- **Secrets Module**:
  - Added `GET /v1/secrets` HTTP handler.
  - Implemented `List` usecase operations with metrics decorators.
  - Added `List` methods to both PostgreSQL and MySQL repositories.
  - Created `ListSecretsResponse` DTO for consistent API responses.

- **Transit Module**:
  - Added `GET /v1/transit/keys` HTTP handler.
  - Implemented `List` usecase operations with metrics decorators.
  - Added `List` methods to both PostgreSQL and MySQL repositories.
  - Created `ListTransitKeysResponse` DTO.

- **Tokenization Module**:
  - Added `GET /v1/tokenization/keys` HTTP handler.
  - Implemented `List` usecase operations with metrics decorators.
  - Added `List` methods to PostgreSQL and MySQL repositories.
  - Created `ListTokenizationKeysResponse` DTO.

- **Routing & Config**:
  - Registered the new GET endpoints in internal/http/server.go.
  - Bumped application version to `0.16.0` in cmd/app/main.go.

- **Documentation & Release Prep**:
  - Documented new routes, DTOs, and parameters in docs/openapi.yaml.
  - Updated API markdown documentation in `docs/api/data/`.
  - Updated `CHANGELOG.md`, `docs/releases/RELEASES.md`, and compatibility matrices.
  - Refreshed documentation metadata (`docs/metadata.json`).

- **Testing**:
  - Maintained strict test coverage matching project guidelines.
  - Added fully-native integration tests for all new MySQL and PostgreSQL repository `List` methods.
  - Included unit tests for all new DTO mappers, usecases, and HTTP handlers.
@allisson allisson merged commit 00052fc into main Feb 25, 2026
2 checks passed
@allisson allisson deleted the list-endpoints branch February 25, 2026 22:16
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