a small RESTFul api, pedagogical purposes