As a contractor, I should be able to update the details of a material, so that I can fix old or inconsistent materials' entries #62
Labels
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
Summary
As a
contractor
, I should be able to update the details of a material, so that I can fix old or inconsistent materials' entries.Acceptance Criteria
GIVEN a
contractor
is editing a material in the desktop appWHEN the app hits the
materials/:id
endpoint with a valid PATCH request, containing:-The path parameter:
:id
, the unique id of the material of which the details are edited.And any of the following body parameters:
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
{Some complementary notes if necessary}
Testing Notes
Scenario 1: PATCH request is successful
/materials/:id
endpoint/materials/:id
endpoint should return a status code 200 and the material details with the updated information i.e. matching the initially sent body.Scenario 2: PATCH request is forbidden
/materials/:id
endpoint using ainspector
account token.The text was updated successfully, but these errors were encountered: