Skip to main content
POST
/
v1
/
api
/
reviews
Create a review
curl --request POST \
  --url http://localhost:3091/v1/api/reviews \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bookingId": 123,
  "rating": 3,
  "comment": "<string>"
}
'
{
  "id": 123,
  "bookingId": 123,
  "reviewerId": 123,
  "revieweeId": 123,
  "rating": 123,
  "comment": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "reviewerPseudo": "<string>",
  "reviewerAvatarUrl": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Body

application/json
bookingId
integer<int32>
required
rating
integer<int32>
required
Required range: 1 <= x <= 5
comment
string
required
Required string length: 10 - 2147483647

Response

Review created successfully

id
integer<int32>
bookingId
integer<int32>
reviewerId
integer<int32>
revieweeId
integer<int32>
rating
integer<int32>
comment
string
createdAt
string<date-time>
reviewerPseudo
string
reviewerAvatarUrl
string