mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
qualifyFields() required a bare field to be a Monitors column, so names only a joined table has, such as Status, CaptureFPS and AnalysisFPS from Monitor_Status, answered 400 where they used to filter: GET /api/monitors/index/Status:Connected.json -> 400 Unknown filter field A bare field that Monitors has is still written Monitor.Field. Otherwise it must be a column of exactly one joined table and is left bare, as before, for MySQL to resolve; buildFilter() does not accept an alias with an underscore such as Monitor_Status, so it cannot be qualified. A bare field no table has stays a 400, and one two joined tables have and Monitors does not (MonitorId, in Monitor_Status and Event_Summaries) is a 400 "Ambiguous filter field" instead of a 500 from MySQL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ZoneMinder API
This is the ZoneMinder API. It should be, for now, installed under the webroot e.g. /api.
app/Config/database.php.default must be configured and copied to app/Config/database.php
In addition, Security.salt and Security.cipherSeed in app/Config/core.php should be changed.
The API can run on a dedicated / separate instance, so long as it can access the database as configured in app/Config/database.php