POST /api/login
Parameters
No parameters
Request body
{ } "userName": "string","password": "string"
In case of successful login, return OK along with a JWT token. The audience, issuer, and private key information to create the JWT token can be found in the file readme.txt in the given materials.
If the login is unsuccessful, return Unauthorized.
1.5 The API at url/api/Review/Course/{id}
using GET method.
This api requires login to execute. The client needs to provide a JWT token when calling the api.The token's audience, issuer, and private key information are the same as in the login api above.
If authentication is successful, return all reviews that the course with courseld equal to {id} has received from users.
Close
+ 100%
Zoom