# Reviews API (OCD demo)

Public product reviews for `/reviews.html`. No auth required (demo).

## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| `GET` | `/v1/reviews` | List reviews (`?limit=50`, optional `?locale=ru\|en`) |
| `POST` | `/v1/reviews` | Create review |

## POST body

```json
{
  "rating": 5,
  "text": "Your review text (min 3 chars)",
  "authorName": "Guest",
  "locale": "ru"
}
```

## Responses

- `201` — created review `{ id, authorName, rating, text, locale, createdAt }`
- `400` — `invalid_request` (rating not 1–5, text too short)

## Errors

| code | HTTP | When |
|------|------|------|
| `invalid_request` | 400 | Bad rating or text |

Storage: SQLite `product-reviews.db` next to experience DB (`ProductReviewStore`).

OpenAPI: included in ReasonService Swagger when `OpenApiEnabled` (`/swagger`).
