Use of REST API

Thanks for the suggestion. I have updated the copy.