Copyright © 2010, 2011 Holger Kreis
http://www.mark-a-spot.org
license http://www.gnu.org/licenses/agpl-3.0.txt GNU Affero General Public License
link http://mark-a-spot.org/
version 0.2
First get Kevin van Zonneveld’s REST Plugin and put it into your plugin’s directry
https://github.com/kvz/cakephp-rest-plugin
git submodule add git://github.com/markaspot/mas-open311.git plugins/open311 git submodule update --init
Copy plugins/config/open311.php
in app/config/
Simply add the plugin as another component.
$component = array( ... ,'Open311.Open311');
Open open311/config/routes.php
and paste the lines to your app/config/routes.php
.
Service endpoint will be /open311/
as controller and custom actions in REST-format
adding JSON Support- adding GET Service Defininiton
adding jurisdiction ID where and if neccessaryadding Service Discovery
- custom validation for requests
- better error handling