Implement Profile - Preferences Page feature
Reference Link: saayam-for-all/ba#52
-
Retrieve User Information
Provide a REST API endpoint to fetch user information.
Input: userId (received when the user clicks on a specific user ID).
The backend will:
Query the database using the provided userId.
Retrieve user details.
Output: Return user information in JSON format required to populate the UI page.
-
Edit User Information
When a user clicks Edit on the page:
UI sends a request to the backend.
Provide a PUT API endpoint to update user information.
Backend will:
Validate the request.
Update the relevant records in the database.
Return success or error response.
Testing Requirements
-
Unit Testing
Write unit test cases for:
REST API endpoints
Service layer logic
Database interaction logic
-
API Testing Using cURL
Test APIs using cURL commands from the CLI.
Include test cases for:
Fetch user data API
Update user data API
Authentication using JWT token
Implement Profile - Preferences Page feature
Reference Link: saayam-for-all/ba#52
Retrieve User Information
Provide a REST API endpoint to fetch user information.
Input: userId (received when the user clicks on a specific user ID).
The backend will:
Query the database using the provided userId.
Retrieve user details.
Output: Return user information in JSON format required to populate the UI page.
Edit User Information
When a user clicks Edit on the page:
UI sends a request to the backend.
Provide a PUT API endpoint to update user information.
Backend will:
Validate the request.
Update the relevant records in the database.
Return success or error response.
Testing Requirements
Unit Testing
Write unit test cases for:
REST API endpoints
Service layer logic
Database interaction logic
API Testing Using cURL
Test APIs using cURL commands from the CLI.
Include test cases for:
Fetch user data API
Update user data API
Authentication using JWT token