GoodRating
Representa a una calificación de un Cliente hacia un Good.
Modelo GoodRating
{
"id": 1,
"rate": 4,
"comment": null,
"created_at": "2019-02-26 19:50:47",
"updated_at": "2019-02-26 19:50:47",
"good_id": 15,
"client_id": 2,
"ordered_good_id": 55,
"branch_id": 2
}
Insertar GoodRating
Insertar GoodRating de OrderedGood
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/ordered-goods/{orderedGoodId}/good-ratings |
Authorization |
{
"rate": "required|integer|min:1|max:5",
"comment": "string|max:255"
}
Listar GoodRating
Listar GoodRating de Client
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/clients/{clientId}/good-ratings |
Authorization |
Listar GoodRating de Good
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/goods/{goodId}/good-ratings |
Authorization |
Listar GoodRating de Order
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/orders/{orderId}/good-ratings |
Authorization |
Listar GoodRating de Branch
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/branches/{branchId}/good-ratings |
Authorization |
Mostrar GoodRating
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/good-ratings/{goodRatingId} |
Authorization |
Actualizar GoodRating
Método |
URI |
Cabeceras |
PATCH |
/companies/{companyId}/good-ratings/{goodRatingId} |
Authorization |
{
"comment": "required|string|max:255"
}
Enlaces de GoodRating