Barclays interview question

if I have a Get endpoint and I have to call that through Java code, how will you do that?