How to reference External API to point to localhost
I have my variables as external API pointing to http://localhost:xxxx/rest_command
When I access the bonita application pages directly from this server I get the data right, since the service xxxx is running in this server.
When I do it from a browser in other pc, it retrieves nothing.
It looks like it is doing the localhost in the client where the application page is opened, thus retrieving nothing since there is no service xxxx there.
If I point the variable to http://server_name_or_ip/rest_command, it works fine.
Is there a way to refer to the own server so I don't need to change all the server references, when going productive ?
That should do it.
It should reference the server correctly
PS: As this reply answers your question, please mark as resolved.
I am using a Postgres server, with a REST addon.
For normal tables it works to reference something like ../API/bdm/BusinessData/com.company.model.Table?p=0&c=5&q=find
However I need to address a view with some field filters, and I've tried some flavors of this syntax, without success.
Do you think this should really work in Bonita ? If so I'll keep on trying.