Commit Graph

12 Commits

Author SHA1 Message Date
Pliable Pixels
8677e600a4 Reset bootstrap to use config/version variables 2015-06-10 15:53:21 +00:00
Pliable Pixels
1f7cd3111b Added CRUD plugin 2015-06-10 15:42:48 +00:00
Pliable Pixels
30aefe1097 Addnew route for new control API. Ref: https://github.com/ZoneMinder/ZoneM^Cder/issues/799#issuecomment-105233112 2015-06-08 17:51:59 +00:00
Kyle Johnson
80b1a61a12 Add CakePHP Crud plugin to the API
I wish I knew about this plugin months ago.

By default PDO and CakePHP cast int as string.  This prevents me
from using `<input type="number">`, as the modle that the input
is bound to is actually a string, not an int.

Crud by default casts int back to int via ApiTransformationListener

It also has a bunch of other features which makes the life of a
REST / CRUD developer easier.
2015-02-25 10:28:24 -05:00
Kyle Johnson
21fdd5d453 Add ZonePresets to the API 2015-02-24 14:08:10 -05:00
Kyle Johnson
432c3c9d82 Add States MVC to API 2015-01-17 11:18:22 -05:00
Kyle Johnson
f213657c0e Add cakephp route for logs 2014-12-01 16:14:23 +00:00
Kyle Johnson
0108f43cab Add function for making vars in zm.conf global in api
This loops throgh zm.conf and sets each variable in it
as global in CakePHP via Configure::write.  The vars
can then later be read withing CakePHP via Configure::read
2014-11-21 21:40:31 +00:00
Kyle Johnson
403ece33bd Tell cmake to configure zm version and config path in cakephp 2014-11-21 21:04:46 +00:00
Kyle Johnson
175e7d3e22 Initial commit of Host MVC.
Used for daemonCheck, getLoad, etc
2014-11-16 00:21:55 +00:00
Kfir Itzhak
afd4e451fd Add the web/api folder to cmake 2014-04-30 12:16:46 +03:00
Kyle Johnson
f1f3de6d7d Moved the api to underneath the web directory 2014-04-29 20:41:04 +00:00