Rest api demo implemented with silex + doctrine