Open dhanashri-dotcom opened 1 month ago
Step Description:
db.json
file or the backend to retrieve the specific user’s data.
Backend Interaction:
db.json
./api/users/:id
(GET request to fetch user details).Front-end Action:
Step Description:
Backend Interaction:
Front-end Action:
Step Description:
Backend Interaction:
db.json
file./api/users/:id
(PUT request to update user details).Front-end Action:
onClick
event for the "Save" button to send the updated data back to the backend.Step Description:
Backend Interaction:
Front-end Action:
alert('User updated successfully!');
Step Description:
Backend Interaction:
db.json
file./api/users
(GET request to fetch all users).Front-end Action:
{
"id": "10a2",
"age": "26",
"gender": "female",
"work_experience": "12",
"canada_workex": "10",
"dep_num": 0,
"canada_born": "false",
"citizen_status": "",
"level_of_schooling": "",
"fluent_english": "false",
"reading_english_scale": 0,
"speaking_english_scale": 0,
"writing_english_scale": 0,
"numeracy_scale": 0,
"computer_scale": 0,
"transportation_bool": "false",
"caregiver_bool": "false",
"housing": "",
"income_source": "",
"felony_bool": "true",
"attending_school": "false",
"currently_employed": "true",
"substance_use": "true",
"time_unemployed": "1",
"need_mental_health_support_bool": "false"
},
Task: Create a form to update the client’s profile. Description: Provide an editable form populated with the client's existing information. Acceptance Criteria: