Code: Select all
http://localhost/zm/api/frames/index/EventId:711.json
Code: Select all
http://localhost/zm/api/frames/index/EventId:711.json
Code: Select all
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /usr/share/zoneminder/www/api/lib/Cake/Model/Datasource/Database/Mysql.php on line 274
Code: Select all
http://localhost/zm/api/events/711.json
Yeah this works, but it returns the entire event, including non-frame information I am not interested in. I'm really more curious as to why the specific API call isn't working as expected. Could be a bug.asker wrote:Code: Select all
http://localhost/zm/api/events/711.json
Could you point me to where you found the Frame API you were trying earlier ? I did not find it in https://zoneminder.readthedocs.org/en/stable/api.htmlStNick wrote:Yeah this works, but it returns the entire event, including non-frame information I am not interested in. I'm really more curious as to why the specific API call isn't working as expected. Could be a bug.asker wrote:Code: Select all
http://localhost/zm/api/events/711.json
Since it states "Frames" is already supposed to be part of the API, and since the docs only provide a limited number of examples, it's not unreasonable to expect calls that work with Events to work the same with Frames.The API is built in CakePHP and lives under the /api directory. It provides a RESTful service and supports CRUD (create, retrieve, update, delete) functions for Monitors, Events, Frames, Zones and Config.
Tantamount wrote:asker,
The docs state:Since it states "Frames" is already supposed to be part of the API, and since the docs only provide a limited number of examples, it's not unreasonable to expect calls that work with Events to work the same with Frames.The API is built in CakePHP and lives under the /api directory. It provides a RESTful service and supports CRUD (create, retrieve, update, delete) functions for Monitors, Events, Frames, Zones and Config.
What is the state of the API? Is it supposed to be feature complete? I ask only to know if we should be reporting bugs yet or not.