API Handler for Silex