[POST] A New Activity Status #72
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 an
admin
, I should be able to create activity statuses, so that students can select one while organizing activities.Acceptance Criteria
GIVEN an
admin
is creating a activity status entry in the appWHEN the app hits the
/activity-statuses
endpoint with a valid POST request, containing:THEN the app should receive a status
201
AND in the response, the following information should be returned:
Sample Request/Sample Response
Resources
Dev Notes
{Some complementary notes if necessary}
Testing Notes
Scenario 1: POST request is successful
/activity-statuses
endpoint and ensure a201
status code is returned.id
returned by the response in a subsequent GET request to/activity-statuses/:id
endpoint and ensure a200
status code is returned./activity-statuses/:id
endpoint and ensure a200
status code is returned.Scenario 2: POST request is incorrect
/activity-statuses
endpoint with an incorrect key name in the body422
status code is returnedcode
parameter should contain "InvalidPropertiesException".data
parameter should contain the name of the invalid parameter.Scenario 3: POST request is forbidden
/activity-statuses
endpoint with astudent
account token.403
forbidden status code is returned.code
parameter should contain "ForbiddenException"Scenario 4: POST request is unauthorized
/activity-statuses
endpoint without an authorization token401
unauthorized status code is returned.code
parameter should contain "TokenMissingException"The text was updated successfully, but these errors were encountered: