- Add
src/investment/portfolio/dto/api-error.dto.tsto document global error shape. - Add
src/investment/portfolio/dto/portfolio-management.dto.tsfor request/response DTOs.
- Edit
src/investment/portfolio/services/portfolio.service.tsto implementarchivePortfolio().
- Add
src/investment/portfolio/portfolio-management.controller.ts. - Controller must expose:
- POST /api/portfolio
- GET /api/portfolio/:id
- GET /api/portfolio
- PUT /api/portfolio/:id
- DELETE /api/portfolio/:id (archive)
- Ensure correct HTTP status codes and Swagger
@ApiResponsedocumentation.
- Edit
src/investment/portfolio/portfolio.module.tsto include the new controller.
- Added
test/portfolio/portfolio-management.e2e-spec.ts(note: token-helper may need alignment with your auth test utilities).
- Added
test/portfolio/portfolio-management.loadtest.sh(autocannon-based).
- Run e2e tests.
- Run load test command.