fleshing out rest api