-
-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Labels
Description
Versions
- Pi-hole: v6.3
- Web: v6.4
- FTL: v6.4.1
Platform
- OS and version: Alpine Linux (Pi-hole Docker image)
- Platform: Docker (docker-compose)
Expected behavior
GET call to /history/database API endpoint should give number of calls 'forwarded' like in following example from api docs.
{
"history": [
{
"timestamp": 1511819900.539157,
"total": 2134,
"cached": 525,
"blocked": 413,
"forwarded": 1196
},
{
"timestamp": 1511820500.583821,
"total": 2014,
"cached": 52,
"blocked": 43,
"forwarded": 1910
}
],
"took": 0.003
}
Actual behavior / bug
'Forwarded' metric is not part of the response object.
{
"history": [
{
"timestamp": 1765314000,
"total": 288,
"cached": 204,
"blocked": 61
},
{
"timestamp": 1765314600,
"total": 48,
"cached": 33,
"blocked": 12
}
],
"took": 0.0009014606475830078
}
Steps to reproduce
- Open https://pi.hole/api/docs/#get-/history/database (Replace the hostname as per your setup)
- Authenticate and update API Server Variables.
- Open GET /history/database
- Add
fromanduntilquery parameters. - Hit 'Try' button
- Observe that the response doesn't contain
forwardedproperty.
You can copy the CURL command with SID and try that as well.
Expected fix:
The API response should honor the schema and include the forwarded property.
