Skip to content

Add GetUserDashboard endpoint routed through user service - #154

Merged
trungquantrannguyen merged 6 commits into
dev-backendfrom
dashboard-api-lachlan-v2
May 10, 2026
Merged

Add GetUserDashboard endpoint routed through user service#154
trungquantrannguyen merged 6 commits into
dev-backendfrom
dashboard-api-lachlan-v2

Conversation

@duaudriver

Copy link
Copy Markdown
Collaborator

I have implemented the User Dashboard endpoint following the existing microservice architecture.

Summary of changes:

  • Added a new gRPC method GetUserDashboard to user.proto
  • Implemented handler and service logic in the user-service
  • Routed the request through the API gateway using the existing user service pattern
  • The endpoint aggregates user data and returns dashboard metrics (total users, admin users, standard users)

Testing:

  • Verified services run successfully with PostgreSQL and RabbitMQ
  • Tested the endpoint locally using:
    GET /api/users/dashboard
  • The endpoint returns a 200 response with the expected dashboard structure

Please let me know if any adjustments are required.

Thanks.

@duaudriver
duaudriver requested a review from s222530306 as a code owner May 1, 2026 05:53
@s222530306

Copy link
Copy Markdown
Collaborator

@duaudriver, please resolve merge conflicts

@duaudriver

Copy link
Copy Markdown
Collaborator Author

Implemented database-backed dashboard APIs and completed Sprint 2 dashboard integration

Removed hard-coded dashboard overview data

Added Sequelize/PostgreSQL-backed dashboard aggregation queries

Implemented dashboard overview endpoint

Implemented dashboard charts endpoint

Implemented dashboard activity endpoint

Added gRPC support for dashboard chart and activity services

Updated protobuf definitions and gRPC interfaces

Added API Gateway routes and controllers for dashboard APIs

Added user-service handlers and service-layer logic

Configured Docker services and RabbitMQ environment fixes

Verified functionality through Docker and curl endpoint testing

@trungquantrannguyen
trungquantrannguyen merged commit db96aec into dev-backend May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants