Возвращает статистику жалоб за выбранный период и сравнение с предыдущим периодом такой же продолжительности.
Security
bearerAuth or jwtCookie
- https://felmee.comhttps://felmee.com/api/admin/complaints/stats
- http://localhost:8080http://localhost:8080/api/admin/complaints/stats
curl -i -X GET \
'https://felmee.com/api/admin/complaints/stats?from=2019-08-24&to=2019-08-24' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Статистика жалоб получена
Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.
Код ошибки. Для успешных ответов всегда null.
Enum:"invalid_body""unauthorized""not_found""conflict""object_modified_by_another_thread""action_too_late""too_many_request""code_is_gone""forbidden""user_blocked"
Response
{ "success": true, "message": "Complaint statistics retrieved successfully", "codeError": null, "error_code": null, "data": { "period": { … }, "total_complaints": 184, "total_complaints_change_percent": 11.4, "open_complaints": 27, "open_complaints_change_percent": 3.8, "closed_complaints": 157, "closed_complaints_change_percent": 12.9, "average_resolution_days": 1.8 } }