http://localhost:5000/api/User/1
Server response
Code
Details
200
Response body
{
"userId": 1,
"username": "john_doe",
"userEmail": "
[email protected]",
"courses": [
{
"courseId": 1,
"title": "Data Science 101",
"enrolledDate": "2024-01-01T00:00:00"
"courseId": 2,
"title": "Machine Learning Basics",
"enrolledDate": "2024-02-01T00:00:00"
}
1.3 The API at url /api/Course/{cid}/{uid} that allows to delete information about enrollment in database.
using DELETE method.
In case the user with userld equal to {uid) is not enrolled in the course with courseld equal to {cid), return NoContent.
Otherwise, remove the enrollment of the user with userld equal to {uid) in the course with courseld equal to {cid} by deleting the data in the table Enrollments and return OK. Note: If any error occurs during the deletion process, return Conflict.
1.4 The API at url/api/User/Login that allows user allow the client to provide a username and password (in MD5 encrypted form) to perform login.
+ 100%
Zoom
Close