Creating simple-simple RESTful API using php, silex.