Add address management and user details retrieval functionality#26
Merged
Add address management and user details retrieval functionality#26
Conversation
…alidation starter dependency
…oller to accept raw request body
# Conflicts: # pom.xml
…alidation starter dependency
…oller to accept raw request body
…ntication into fix-bug-in-update
…vice and add event publisher in registration courier/customer.
YehiaFarghaly
approved these changes
May 14, 2025
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.
This pull request introduces several enhancements and fixes to the authentication module, including improved validation, new DTOs for user updates and details, and expanded functionality in the User and Address models. The changes also include updates to the
pom.xmldependencies and the addition of new service methods and exception handling.Dependency Updates
podzilla-utils-libdependency to versionv1.1.6inpom.xml.spring-boot-starter-validationdependency to enable validation annotations.Validation Enhancements
@Validannotations to request bodies inAuthenticationControllermethods (loginandregisterUser) for automatic validation. [1] [2]@NotBlank,@Email) inLoginRequestandSignupRequestDTOs to enforce field constraints. [1] [2]handleMethodArgumentNotValidinGlobalExceptionHandlerto provide detailed error messages for validation failures.User and Address Model Enhancements
mobileNumberand a one-to-one relationship with theAddressentity to theUsermodel.Addressentity with fields for street, city, state, country, and postal code, linked to theUsermodel.AddressRepositoryfor database operations on theAddressentity.New DTOs and Controller Features
UpdateRequestandUserDetailsRequestDTOs for user profile updates and fetching user details. [1] [2]UserControllerwith a newgetUserDetailsendpoint and updatedupdateProfileto useUpdateRequest.Service and Utility Updates
AuthenticationServiceto includegetCurrentUserDetailsand updated header methods to includeX-User-Id. [1] [2]AdminServiceto includeidinCustomUserDetails.registerAccountinAuthenticationService.