cakephp plugin to provide mark-a-spot information according to the georeport v2 standard
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
controllers
views/open311
open311_app_controller.php
readme.textile

readme.textile

Mark-a-Spot Plugin for GeoReport V2 Reports

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

Implementation

Install REST-Plugin

First get Kevin van Zonneveld’s REST Plugin and put it into your plugin’s directry
https://github.com/kvz/cakephp-rest-plugin

Install Open311-Plugin

git submodule add git://github.com/markaspot/mas-open311.git plugins/open311
git submodule update --init

Copy config file

Copy plugins/config/open311.php in app/config/

Adding the plugin to your app_controller

Simply add the plugin as another component.

$component = array( ... ,'Open311.Open311');

Adding custom REST-Routes

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

Things to do:

  • adding JSON Support
  • adding GET Service Defininiton
  • adding jurisdiction ID where and if neccessary
  • adding Service Discovery
  • custom validation for requests
  • better error handling