API seems to be working but monitors.json is missing
Posted: Mon Jul 25, 2016 12:39 am
Hello,
I am following the article on http://zoneminder.readthedocs.io/en/stable/api.html. First step, curl login, it is a total success. The cookie.txt is created on my local directory and the returned page is exactly what I got when I login to the console.
The problem comes with the second command suggested by the article:
curl -b cookies.txt http://yourzmip/zm/api/monitors.json
Among other stuff (the html scaffold of the page) I am getting this in the output:
The requested URL was not found on this server.
And to make things worse, monitors.json does not exist in my server (updatedb/locate)
CakePHP is version 2.5 (bundle with the 1.29) and it seems to be working nicely (permissions are fixed, database.php edited, etc, etc). When I try http://localhost/zm/api I am getting the expected page, with a lot of links and some query statements at the bottom of the page. Just in case I am adding it here:
Thank you very much,
I am following the article on http://zoneminder.readthedocs.io/en/stable/api.html. First step, curl login, it is a total success. The cookie.txt is created on my local directory and the returned page is exactly what I got when I login to the console.
The problem comes with the second command suggested by the article:
curl -b cookies.txt http://yourzmip/zm/api/monitors.json
Among other stuff (the html scaffold of the page) I am getting this in the output:
The requested URL was not found on this server.
And to make things worse, monitors.json does not exist in my server (updatedb/locate)
CakePHP is version 2.5 (bundle with the 1.29) and it seems to be working nicely (permissions are fixed, database.php edited, etc, etc). When I try http://localhost/zm/api I am getting the expected page, with a lot of links and some query statements at the bottom of the page. Just in case I am adding it here:
Thank you very much,