Capgemini Interview Question

how to Mak e API calls with layer in angular js