Skip to content

[LOCKLITE-89] Create API route for get my vaults#52

Merged
vbetsch merged 14 commits intodevelopfrom
feat/89-api-get-vaults
Jul 29, 2025
Merged

[LOCKLITE-89] Create API route for get my vaults#52
vbetsch merged 14 commits intodevelopfrom
feat/89-api-get-vaults

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Jul 29, 2025

No description provided.

@vbetsch vbetsch requested a review from Copilot July 29, 2025 18:48
@vbetsch vbetsch self-assigned this Jul 29, 2025
@vbetsch vbetsch added api About endpoints and services release:add New features (for the release changelog) labels Jul 29, 2025
@notion-workspace
Copy link

1 similar comment
@notion-workspace
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new API route for retrieving the current user's vaults. The implementation follows established patterns in the codebase with proper layering through use cases, repositories, and adapters.

  • Creates a new GET endpoint at /api/vaults that returns user vaults
  • Implements supporting infrastructure including use case, repository method, and response DTOs
  • Updates the vault adapter to handle list transformations and adds interface consistency

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/modules/shared/dto/responses/get-my-vaults.response.dto.ts Defines response DTO for get my vaults API with Swagger documentation
src/modules/shared/dto/responses/create-vault.response.dto.ts Updates Swagger property name from 'vault' to 'vaultCreated'
src/modules/api/usecases/vaults/get-my-vaults.usecase.ts Implements use case for retrieving user vaults with TODO for user filtering
src/modules/api/repositories/vaults.repository.ts Adds findAll method to retrieve all vaults from database
src/modules/api/adapters/vault.adapter.ts Adds list transformation method and simplifies single model transformation
src/modules/api/adapters/abstract/adapter.interface.ts Extends adapter interface to include list transformation method
src/app/api/vaults/route.ts Implements GET endpoint with Swagger documentation and error handling

@vbetsch vbetsch merged commit 9169bba into develop Jul 29, 2025
4 checks passed
@vbetsch vbetsch deleted the feat/89-api-get-vaults branch July 29, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api About endpoints and services release:add New features (for the release changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants