Access to REST endpoint on embedded form

Hi
I have a Rest end point exposed to http://localhost:8080/camunda/carriers/
how can I access to this end point in my embedded form dynamically?
I want to be able to access to this endpoint regardless of my environment, something like relative address.
Any Ideas ?