finished edit of http API