API overview
Suggest matching products
Choose an operation to see its request, response shape, access rules and implementation source.
ReadPublic
GET/api/v1/search
Suggest matching products
No auth:sanctum or bearer ability is required by this route.
Request
| Field | In | Rule |
|---|---|---|
q | Query string | Optional string; fewer than 2 trimmed characters returns an empty array. |
No request body.
curl --request GET "https://shop.example.test/api/v1/search" \
--header 'Accept: application/json' \
--get \
--data-urlencode 'q=lamp'Response200
Success: 200
Response shape (notation, not a captured response)
{ data: Product[] }Common errors
| HTTP status | Meaning |
|---|---|
429 | rate_limited: back off before retrying, especially writes. |