You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user may write a review of an item, generating an HTTP request to add a new review for the item. The handler should look up the item based on the item id, add the review to the list of reviews, and persist the update item to the database. If the item cannot be found, a meaningful response should be returned with a description. The handler interacts with a persistence library to store the data. The handler should also check the validity of the input arguments. If any of the input arguments are empty or null, a 400 response should be returned with a description.
Important notes: The endpoint address is "/reviewAnItem". The URL query parameters are: "userId" , "itemId","comment", and "rating".
The text was updated successfully, but these errors were encountered:
tlatoza
changed the title
Implement a new HTTP request, write a review for an item
Implement a new HTTP request to write a review for an item
Sep 13, 2019
tlatoza
changed the title
Implement a new HTTP request to write a review for an item
Implement a handler for an HTTP request to write a review for an item
Sep 13, 2019
tlatoza
changed the title
Implement a handler for an HTTP request to write a review for an item
Handle HTTP request to add a new review
Sep 13, 2019
A user may write a review of an item, generating an HTTP request to add a new review for the item. The handler should look up the item based on the item id, add the review to the list of reviews, and persist the update item to the database. If the item cannot be found, a meaningful response should be returned with a description. The handler interacts with a persistence library to store the data. The handler should also check the validity of the input arguments. If any of the input arguments are empty or null, a 400 response should be returned with a description.
Important notes: The endpoint address is "/reviewAnItem". The URL query parameters are: "userId" , "itemId","comment", and "rating".
The text was updated successfully, but these errors were encountered: