Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Development) : Implement API to get Response of Current User (Logged In User) #7

Open
rohit-zip opened this issue May 22, 2024 · 2 comments
Labels
enhancement New feature or request Feature good first issue Good for newcomers

Comments

@rohit-zip
Copy link
Member

Issue Description

Objective:

Implement an endpoint to retrieve the logged-in User data following the CQRS pattern, data to get from Elasticsearch

Endpoint:

Request Body:

None

Response Body:

Create a new response in payloads/response named LoggedInUser.java. Include all variables present in User Entity except Password

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:

@rohit-zip rohit-zip added enhancement New feature or request good first issue Good for newcomers Feature labels May 22, 2024
@kesrishubham2510
Copy link

Hi @rohit-zip, I was going through Code, I see there is already an endpoint ["auth-provider/user/"] in UserController to retrieve the userInfo, but it returns the masked information with very few fields.

You want to enhance the DAO layer to return the complete details, is this understanding correct ? as you have mentioned a new ResponsePayload and an existing endpoint.

@rohit-zip
Copy link
Member Author

Hi @kesrishubham2510
Thanks for your input, will go through the endpoints and then get back to you

Thanks
@rohit-zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants