a smal RESTFul api - pedagogical purposes