Hello @dhasarathan
Welcome to the ERPNext community.
There are many topics on this Forum that deals with just that
and REST calls in general
Hope it’ll help you