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
Implement a PUT endpoint to update user profiles using the CQRS pattern. Data should be persisted in both PostgreSQL and Elasticsearch. Follow the existing project structure without adding new variables to the Profile Entity and Document. Utilize the logged-in user's details from @AuthenticationPrincipal.
Use the same validations as the Profile Create endpoint in the Profile Controller.
Ensure the logged-in user can only update their own profile.
For validation exceptions, throw a Bad Request exception with the appropriate exception code.
Add error messages in error-messages.properties located in the resources directory.
Development Requirements
Profile Controller: Implement the PUT endpoint to handle profile updates.
Profile Service: Define the service methods needed for profile updates.
Profile Implementation: Implement the logic for updating profiles, ensuring persistence in both PostgreSQL and Elasticsearch.
Profile Dao: Handle the database operations for updating the profile.
Authentication
Retrieve the logged-in user's details from @AuthenticationPrincipal AuthenticatedUser authenticatedUser. This will provide the userId, email, username, authorities, etc.
Contact Information
For any questions or clarifications, please reach out:
Ensure the changes are consistent with the existing project structure and adhere to the CQRS pattern. No new variables should be added to the Profile Entity and Document.
The text was updated successfully, but these errors were encountered:
rohit-zip
changed the title
Implement an API Endpoint to Update User Profile with
(Development) : Implement an API Endpoint to Update User Profile with
May 22, 2024
rohit-zip
changed the title
(Development) : Implement an API Endpoint to Update User Profile with
(Development) : Implement an API Endpoint to Update User Profile
May 22, 2024
Overview
Implement a PUT endpoint to update user profiles using the CQRS pattern. Data should be persisted in both PostgreSQL and Elasticsearch. Follow the existing project structure without adding new variables to the Profile Entity and Document. Utilize the logged-in user's details from @AuthenticationPrincipal.
###Endpoint Details
Request Body
Response Body
Validations
Development Requirements
Authentication
Retrieve the logged-in user's details from @AuthenticationPrincipal AuthenticatedUser authenticatedUser. This will provide the userId, email, username, authorities, etc.
Contact Information
For any questions or clarifications, please reach out:
Email: [email protected]
Discord Link: https://discord.gg/sEerF8HuKC
LinkedIn: https://linkedin.com/in/rohit-zip
Phone: +91-9571406506
Additional Notes
Ensure the changes are consistent with the existing project structure and adhere to the CQRS pattern. No new variables should be added to the Profile Entity and Document.
The text was updated successfully, but these errors were encountered: