first stab at an restful api