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>"
}Submits a review with rating and comment for a completed booking
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>"
}JWT access token from POST /v1/api/auth/login