Skip to main content
GET
/
barbers
/
{id}
/
summaries
/
reviews
Get review summary for a barber
curl --request GET \
  --url https://api.guile.app/barbers/{id}/summaries/reviews \
  --header 'Authorization: Bearer <token>'
{
  "totalReviews": 1,
  "positive": {
    "count": 1,
    "percentage": 50
  },
  "negative": {
    "count": 1,
    "percentage": 50
  },
  "calculatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string<uuid>
required

The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.

Response

Ok. The operation succeeded.

Aggregated review metrics for a barber

totalReviews
integer<int32>
required

Total number of reviews.

Required range: x >= 0
positive
object
required

Breakdown of positive reviews.

negative
object
required

Breakdown of negative reviews.

calculatedAt
string<date-time>
required

The date-time when these metrics were calculated, in RFC 3339 date-time YYYY-MM-DDThh:mm:ss.sssZ format, UTC.