Future of API

Forum for questions and support relating to the 1.28.x releases only.
Locked
Lars
Posts: 6
Joined: Mon Sep 15, 2014 11:46 am

Future of API

Post by Lars »

Hi, are there any plans on extending the zoneminder API? (http://zoneminder.readthedocs.org/en/latest/api.html)

It's very sparse; you can either fetch 1 event or ALL events. Nothing in between. Not very flexible.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Future of API

Post by asker »

First off, thanks for reminding me of the APIs :-) I read about it long time ago and forgot it existed. I just installed the current APIs and have been playing with it.

It seems ZM maintainers are maintaining a different branch for upgrading their APIs, based on this issue: https://github.com/ZoneMinder/ZoneMinder/issues/8
This is the branch https://github.com/ZoneMinder/ZoneMinde ... angular-ui

If you look at https://github.com/ZoneMinder/ZoneMinde ... ui/web/api and look at the Controller classes, they have added more flexibility to search in a more granular way

I don't really know any of CakePHP, PHP and AngularJS etc -- but it seems quite easy to understand and extend. You might want to download the angular-js branch and experiment?



Lars wrote:Hi, are there any plans on extending the zoneminder API? (http://zoneminder.readthedocs.org/en/latest/api.html)

It's very sparse; you can either fetch 1 event or ALL events. Nothing in between. Not very flexible.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Lars
Posts: 6
Joined: Mon Sep 15, 2014 11:46 am

Re: Future of API

Post by Lars »

I'm afraid I don't follow. Is there any documentation on how to call the API?
Locked