Rates
This guide explains how to interact with the rates API endpoints in the Calwe application.
Get Top Rates
Endpoint
- Method: GET
- URL:
/v1/customer/rates
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
Query Parameters
| Parameter | Type | Description | Required | Default |
|---|---|---|---|---|
| limit | number | Number of top rates to return | No | 10 |
| page | number | Page number for pagination | No | 1 |
Success Response
{
"success": true,
"message": "تم جلب تقييمات المدربين بنجاح",
"data": {
"current_page": 1,
"data": [
{
"id": "9d1fd458-0eab-4e62-97b1-3f2676f8db0e",
"fullName": "ماريا المجالي",
"rate": 5,
"comment": "رايع"
},
],
"first_page_url": "url",
"from": 1,
"last_page": 1,
"last_page_url": "url",
"links": [],
"next_page_url": null,
"path": "url",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
},
"statusCode": 200
}
Error Response
Not Found (404)
{
"success": false,
"message": "لا توجد تقييمات",
"data": null,
"statusCode": 404
}
Important Notes
User Experience
- Rating process is simple
- Feedback is immediate
- Rating impact is visible
- Rating guidelines are provided
- Rating history is accessible
- Rating disputes can be handled