Forum Discussion
ashinde I'm glad Kris was able to help sort out the IP whitelisting issue. I'm curious though... Are you calling the endpoint from the same Community? If so, you might want to look at refactoring to avoid the http.client call since it will be slower.
If you have endpoint A that calls endpoint B, you should be able to do the same Freemarker logic from endpoint B directly in endpoint A. The easiest way to to do this would be to make your endpoint B logic either a Freemarker macro or endpoint.
You could then call that function/macro in endpoint A, which should be more performant than calling endpoint B via http.client. You could still retain endpoint B and leverage the same function/macro if you needed to use endpoint B for some other external purpose.
I hope this helps!
Related Content
- 12 years ago
- 11 years ago