Skip to content

Conversation

@gelluisaac
Copy link
Contributor

close #28

Overview
Implemented RESTful API endpoints for treasury operations (e.g., create, update, fetch treasuries and transactions) with proper authentication, authorization, and event-based communication.

Changes Made
Treasury Controller :
Added endpoints for treasury and transaction management.
Used Swagger annotations for API documentation.
DTOs and Validation :
Created DTOs for requests/responses.
Added validation to ensure data integrity.
Authentication & Authorization :
Integrated JwtAuthGuard and RolesGuard for secure access.
Implemented checkUserAccessToTreasury and checkUserPermission methods.
Event-Based Communication :
Published events for treasury/transaction updates using TreasuryEvents.
Error Handling :
Handled errors like NotFoundException, ForbiddenException, and BadRequestException.
Testing Status
Unit and integration tests pending.
Manual testing not yet performed.

@gelluisaac gelluisaac marked this pull request as draft April 26, 2025 20:11
@anonfedora anonfedora self-requested a review April 27, 2025 09:39
@gelluisaac gelluisaac marked this pull request as ready for review May 6, 2025 18:17
Copy link
Contributor

@anonfedora anonfedora left a comment

Choose a reason for hiding this comment

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

LGTM

@anonfedora anonfedora merged commit b8e022a into BudgetChain:main May 9, 2025
3 checks passed
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.

[BE]: Implement Treasury API Endpoints

2 participants