Returns the student object associated with the uid
URL Params:
- Required:
uid=[string]
Data Params:
- None
Status Code: 200 OK
Response Content:
{
"firstName": "First Name",
"lastName": "Last Name",
"email": "Email Address",
"enrolled_courses": "[Array of Course Objects]",
"transaction_history": "[Array of Transaction Objects]",
"uid": "Unique User ID"
}
Condition: If user ID does not exist on the database
Status Code: 404 Not Found
Response Message: Student with id ${uid} does not exist
axios.get(`/api/students/${uid}`)
.then((res) => console.log(res.data))
.catch((err) => console.error(err));