fixed some misc errors, figured out a bit more re: the rest api. use $_POST to simplify the request