As a student, I should be able to get details of a interest, so that I can understand what information it represents #42
Labels
Status: Completed
Type: Feature
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
Summary
As a
student
, I should be able to get details of a interest, so that I can understand what information it represents.Acceptance Criteria
GIVEN an
student
is requesting details of an interest in the appWHEN the app hits the
interests/:id
endpoint with a valid GET request, containing the path parameter::id
, the unique id of the entity for which the details are needed.THEN the app should receive a status
200
AND in the response, the following information should be returned:
Sample Request/Sample Response
Resources
Dev Notes
This endpoint is accessible by and serves the admin in the same way.
Testing Notes
Scenario 1: GET request is successful
GIVEN a
student
is requesting details of an interest in the appWHEN the app hits the
/interests/:id
endpoint with a valid GET request, containing the path parameter::id
THEN the app should receive a status
200
AND the
{id}
in the body should be same as the:id
in the path parameterScenario 2: GET request is unsuccessful
GIVEN a
student
is requesting details of an interest in the appWHEN the app hits the
/interests/:id
endpoint with a valid GET request, containing the path parameter::id
, a non-existent idTHEN the app should receive a status
404
AND the response headers'
code
parameter should contain "NotFoundException"Scenario 3: GET request is forbidden
GIVEN a
student
is requesting details of an interest in the appWHEN the app hits the
/interests/:id
endpoint with a valid GET requestAND the request contains no authorization token
THEN the app should receive a status
401
AND the response headers'
code
parameter should contain "TokenMissingException"The text was updated successfully, but these errors were encountered: