Added example code for a simple spark REST API