http://www.phpgang.com/how-to-create-restful-api-webservice-with-slim-php-and-mysql_588.html