Virtusa interview question

How to automate get and post in API