Capgemini interview question

how to Mak e API calls with layer in angular js