How can I make a REST call to one of my biz-logic APIs from within a java biz-logic function?

I would like to make a REST call to one of my biz-logic APIs, from within one of my biz-logic functions. This is for Java.

Should I use HttpUrlConnection ? Is there another method?

A simple example would also be helpful. Thank you.
-Brian

Hello @Brian_Goble

We have a restrictions on calling business logic from the business logic. It is error prone approach. Increasing and complication logic of application would cause looping the business logic invocation in some cases. So you cannot invoke custom service method from another custom service. Such behaviour touches event handlers too.

Perhaps your question is only how best to make a rest request using Java?
You can use HttpUrlConnection and you can use another method (https://stackoverflow.com/questions/3913502/restful-call-in-java).
There will be an exception only if you use ServerCodeApiKey.