docs: add comprehensive API reference documentation
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

Adds complete API reference (api-reference.md) covering all endpoints: /api/stations (nearby search with postcode/lat+lng), /api/stats/searches (aggregated search stats), /api/prediction (7-day price forecast with multi-signal breakdown), and auth routes (register/login/logout/me). Includes request/response examples, error shapes, fuel type aliases, and signal structure details. Also removes unused AccountWidget from admin panel, disables BrentPriceChartWidget discovery, and adds searches stat to StatsOverviewWidget.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ovidiu U
2026-04-05 19:34:32 +01:00
parent 7101ed3550
commit 4f57c97015
4 changed files with 365 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ class BrentPriceChartWidget extends ChartWidget
protected ?string $pollingInterval = null;
protected static bool $isDiscovered = false;
protected function getData(): array
{
$prices = BrentPrice::orderBy('date')