Context: Please create the functionality that allows the product UPDATE of the rating endpoint
User Story:As a user, I want my rating of the product to be updated in the PATCH /ratings/{productId} endpoint, so that my opinion is useful to other people
Acceptance Criteria:Scenario 1 - Update product raiting - 200 OK
GIVEN a frontend app made a request to BE Platform
AND a call is made to PATCH /ratings/{productId} endpoint
WHEN the product has all the mandatory fields
THEN the platform will update the product raiting in the database
Scenario 2 - Update product rating - 400 Bad Request
GIVEN a frontend app made a request to BE Platform
AND a call is made to PATCH /raitings/{productId} endpoint
WHEN the product hasn't all the mandatory fields
THEN the platform will return 400
Scenario 3 - Update product rating - 404 Not Found
GIVEN a frontend app make a request to BE Platform
AND a call is made to GET /rates/{productId} endpoint
WHEN the product doesn't exist in the database
THEN the platform will return 404 Not Found
Context: Please create the functionality that allows the product UPDATE of the rating endpoint
User Story: As a user, I want my rating of the product to be updated in the PATCH /ratings/{productId} endpoint, so that my opinion is useful to other people
Acceptance Criteria: Scenario 1 - Update product raiting - 200 OK
GIVEN a frontend app made a request to BE Platform AND a call is made to PATCH /ratings/{productId} endpoint WHEN the product has all the mandatory fields THEN the platform will update the product raiting in the database
Scenario 2 - Update product rating - 400 Bad Request
GIVEN a frontend app made a request to BE Platform AND a call is made to PATCH /raitings/{productId} endpoint WHEN the product hasn't all the mandatory fields THEN the platform will return 400
Scenario 3 - Update product rating - 404 Not Found
GIVEN a frontend app make a request to BE Platform AND a call is made to GET /rates/{productId} endpoint WHEN the product doesn't exist in the database THEN the platform will return 404 Not Found