Bloggios / Bloggios/user-provider-application
(Development) : Implement Endpoint to Get Profile of Current User (Logged In User)
- Dominant language
- Java
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### 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](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](mailto:rohitparih@gmail.com)
- **LinkedIn:** [rohit-zip](https://linkedin.com/in/rohit-zip)
- **Phone:** +91-9571406506
Contributor guide
Assessment
This issue has not been assessed yet.