calling rest api from java code example. There are any references about calling rest api from java code example in here. you can look below.