ProviderRating
Calificación de un Cliente hacia un Provider.
Modelo ProviderRating
{
"id": 1,
"rate": 5,
"comment": "excelente calidad de servicio",
"created_at": "2019-02-26 19:50:21",
"updated_at": "2019-02-26 19:50:21",
"order_id": 37,
"provider_id": 1,
"client_id": 2
}
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