first stab at restful api