Is "External API" limited to URL under ../API ?

1
0
-1

Hello

Since I cannot use Business Data because it cannot fetch data from my own existing database (which is a little limiting for "business data"), I tried to use REST calls from the UI to fetch data from my own REST server.

However it doesn't work at all, nothing happens. No error in the console, just no data is fetched.

I try to call this server using various URLs:
- absolute URL, including domain (https://my.server.com/my_api/my_data)
- relative URL, I installed my REST application on the bonita tomcat and use URLs such as : ../../my_api/my_data.

It doesn't work. I created a text field to display such variables, it is empty.
If I call the above URL directly from the browser, I get the expected JSON data.
Is this "external api" stuff stupidly limited to URL under ../API ?
If yes how can I solve my problem ?
Thanks.

1 answer

1
0
-1

Hi,

I'm surprised you don't get any result by calling the absolute URL. I did a test using the below URL and it works perfectly: https://samples.openweathermap.org/data/2.5/forecast?id=524901&appid=b1b...

The only constraint is to make sure the URL called is HTTPS, otherwise you'll get a CORS error.

Regarding the relative URL, you can access your other app by accessing the root of your folder. By example if you want to access something like http://localhost:8080/otherApp/myAPI You can type: /otherApp/myAPI in the external API field.

Cheers

Notifications