[BACKEND] - Add user profile and account management endpoints - #453
Merged
Hydrax117 merged 2 commits intoJun 2, 2026
Conversation
|
@iyanumajekodunmi756 is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@iyanumajekodunmi756 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Reference
Fixes #445 - [BACKEND] - No user profile or account management endpoints
Summary
This PR implements user profile and account management endpoints to address issue #445. The User model exists in src/models/user.rs but was never exposed via HTTP. This implementation provides the necessary endpoints for clients to fetch profiles, update usernames, change avatars, and view their own account details.
Implementation Comparison
Required Endpoints (from #445)
Implementation Details
New Files Created:
src/service/user_service.rs (199 lines)
src/http/users.rs (125 lines)
Modified Files:
API Endpoints Implemented
GET /api/users/{id} - Public User Profile
GET /api/users/me - Current User Profile
PUT /api/users/me - Update Profile
GET /api/users/{id}/stats - User Statistics
Code Quality
Testing Considerations
The implementation includes basic unit tests for request validation. Additional testing should include:
Breaking Changes
None - this adds new functionality without modifying existing endpoints
Migration Notes
No database migrations required - uses existing tables (users, user_elo, elo_history)
Generated with Devin (https://cli.devin.ai/docs)