REST'd up the API