(Development) : Implement Endpoint to Get Profile of Current User (Logged In User)
Opened this issue · 0 comments
rohit-zip commented
Issue Description
Objective:
Implement an endpoint to retrieve the logged-in user's profile data following the CQRS pattern, data to get from Elasticsearch
Endpoint:
- Complete Endpoint: https://api.bloggios.in/user-provider/profile (GET)
- Target Controller: Profile Controller
Request Body:
None
Response Body:
Create a new response in payloads/response
named LoggedInUserProfile.java
. Include all variables present in Profile Entity except for secretive information.
Validations:
- Logged-in user data can be automatically extracted from
@AuthenticationPrincipal
. - Users can only retrieve their own profiles.
Rules:
- Code should be placed in Profile Controller, Profile Service, Profile Implementation, and Profile Dao.
- Follow the CQRS pattern without changing the project structure.
- Do not add any new variables in Profile Entity and Document.
- Read operations should be done from Elasticsearch
Contact:
Feel free to reach me at any of the below links:
- Email: rohitparih@gmail.com
- LinkedIn: rohit-zip
- Phone: +91-9571406506