how to call rest api in visual studio code