ProviderRating
Calificación de un Cliente hacia un Provider.
Modelo ProviderRating
{
"id": 5,
"rate": 3,
"comment": "llegó tarde, exijo reembolso",
"created_at": "2021-11-29 16:47:56",
"updated_at": "2021-11-29 16:47:56",
"order_id": 5395,
"provider_id": 53,
"client_id": 74,
"service_type": 1
}
Atributo |
Tipo |
Descripción |
id |
int |
- |
rate |
int |
- |
comment |
string\|null |
- |
created_at |
datetime\|null |
- |
updated_at |
datetime\|null |
- |
order_id |
int\|null |
- |
provider_id |
int |
- |
client_id |
int\|null |
- |
service_type |
int |
- |
Insertar ProviderRating
Insertar ProviderRating de OrderProvider
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/provider-ratings |
Authorization |
{
"rate": "required|integer|min:1|max:5",
"comment": "string|max:255"
}
Listar ProviderRating
Listar ProviderRating de Provider
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/providers/{providerId}/provider-ratings |
Authorization |
Listar ProviderRating de Order
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/orders/{orderId}/provider-ratings |
Authorization |
Mostrar ProviderRating
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/provider-ratings/{providerRatingId} |
Authorization |
Actualizar ProviderRating
Método |
URI |
Cabeceras |
PATCH |
/companies/{companyId}/provider-ratings/{providerRatingId} |
Authorization |
{
"comment": "required|string|max:255"
}
Acciones de ProviderRating
Index Latest
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/providers/{providerId}/provider-ratings/latest |
Authorization |
Enlaces de ProviderRating