Task #17061
WSC: User retrieval web service
Start date:
02/11/2023
Due date:
% Done:
10%
Estimated time:
Description
The web service should accept a user name or ID as input and return the corresponding user details from Keycloak.
- Use Alya to create the web service.
- Use gocloak to get the user from Keycloak based on the ID or username provided in the request.
- Handle any errors that may occur during the user creation process and returning the error response.
- Test the web service to ensure it returns the correct user and required details.
Files
Updated by Aniket Shinde almost 2 years ago
- Assignee set to Aniket Shinde
- Status changed from New to In Progress
- File clipboard-202311211821-xlzjp.png clipboard-202311211821-xlzjp.png added
- File clipboard-202311211820-iridk.png clipboard-202311211820-iridk.png added
- File clipboard-202311211819-dilm2.png clipboard-202311211819-dilm2.png added
Create User retrieval web service:
- Created User retrieval web service by ID:[GET("/user/:id", getUserByID)]
1) getByID:

2) getByUserName:

3)Missing both ID & UserName:

Updated by Aniket Shinde almost 2 years ago
- % Done changed from 0 to 10
fix: Response payload (implemented required field in response)
GetUser: response¶
{
"status": "success",
"data": {
"id": "ac6bd3cb-7007-4fc2-ba3d-586dbc41ec0f",
"username": "user_1",
"firstName": "User",
"lastName": "One",
"emailVerified": true,
"enabled": true
},
"messages": []
}
CreateUser : response¶
{
"status": "success",
"data": {
"id": "d8425004-0d12-46a3-a737-2f5fbb5daeca",
"username": "user_12",
"email": "Brij@domain.com",
"firstName": "Brij",
"lastName": "Endra",
"enabled": true
},
"messages": []
}
Updated by Aniket Shinde almost 2 years ago
- File clipboard-202311221616-yadpx.png clipboard-202311221616-yadpx.png added
- File clipboard-202311221604-da3sw.png clipboard-202311221604-da3sw.png added
USER_NOT_FOUND_IN_REALM

