add Review

user creates review

POST /reviews/{designerId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Request-Body

Name
Type
Description

userId

string

id of the reviewer

designerId

string

id of the designer

rating

integer

rating of the reservation

content

text

comment

reservationId

integer

id of the reservation

Response

{
  "reviewId": 98765,
  "designerId": 54321,
  "userId": 12345,
  "rating": 5,
  "content": "The designer was amazing! Very satisfied with the haircut.",
  "reservationId": 67890,
  "createdAt": "2024-10-08T12:34:56"
}

Last updated