first attempt at a basic API for a small web app