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.

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 (
There will be an exception only if you use ServerCodeApiKey.