You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor user and post-related services, add XML comments, and enhance post functionality.
- Renamed and reorganized namespaces for `Users` and `Posts` services to improve structure.
- Deleted and recreated `CurrentUser.cs` under a new namespace for better organization.
- Added extensive XML comments and documentation for methods in `Post`, `PostService`, and related services.
- Introduced `UpdatePostRequest` DTO for post updates.
- Enhanced post creation by separating feed and project post logic in `PostService`.
- Updated `PostResponse` DTO to include `CanEdit` and `CanDelete` flags for user-specific features.
- Adjusted `IUserRepository`, `IUserService`, and respective implementations to use updated namespaces.
- Added functionality in `PostRepository` to support post updates.
- Updated DI container in `Program.cs` to reflect changes.
@@ -28,6 +35,12 @@ public async Task<IActionResult> Register([FromBody] RegisterRequest request, Ca
28
35
returnNoContent();
29
36
}
30
37
38
+
/// <summary>
39
+
/// Authenticates a user with the provided login credentials.
40
+
/// </summary>
41
+
/// <param name="request">An object containing the user's identifier (username or email) and password.</param>
42
+
/// <param name="ct">A cancellation token to cancel the operation if needed.</param>
43
+
/// <returns>An asynchronous operation result containing authentication tokens if successful, or an unauthorized response if credentials are invalid.</returns>
0 commit comments