GET /businesses/{id}/risk-history
Path parameters
The unique identifier of the business whose evaluation history you want to retrieve.
What happens
The server fetches the business record byid, then returns all of its RiskEvaluation records ordered by evaluated_at descending — most recent evaluation first.
Response
Returns an HTML page rendered fromrisk_history.html listing every evaluation for the business.
Evaluation fields
The UTC timestamp when the evaluation was created.
The final risk score, from 0.0 to 100.0.
The risk classification:
low, medium, high, or critical.Parsed JSON object containing the scoring breakdown.
Example
Error responses
| Status | Description |
|---|---|
404 Not Found | No business exists with the given id. |
422 Unprocessable Entity | The id is not a valid integer. |
Seed data includes 3 evaluations per business, so every business has a baseline history on a fresh install.
New evaluations from
POST /businesses/{id}/evaluate are appended to this history automatically. Refresh or re-request this endpoint to see them.