Skip to content

User review Rest

Agustina Corvo Gutierrez requested to merge user-review-rest into develop

En el service usé directo el repository de User porque si se usa el service de User, al usar el converter se pierden los givenUserReviews y receivedUserReviews y habría que dar una vuelta tremenda para recuperarlos.

  • add
  • findById
  • list
curl --location --request POST 'http://localhost:5000/userReview/add' \
--header 'Content-Type: application/json' \
--data-raw '{      
    "rating": 3,
    "description": "test 3 de customer",
    "sellerEmail": "agus@example.com",
    "customerEmail": "another1@example.com",
    "from": "CUSTOMER"
}'

curl --location --request GET 'http://localhost:5000/userReview/findById/2'

curl --location --request GET 'http://localhost:5000/userReview/list'

Merge request reports