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.
Use POST method
The password sent in the request is an MD5 encrypted string. When performing login, you only need to compare this string with the password stored in the database by checking if the two strings are equal.
Zoom
+ 100%
Close