IBM interview question

How to implement api calling with angular