Skip to Content
0
Jun 19, 2019 at 09:16 AM

Unable to make API Calls on my SAP Leonardo IOT (POSTMAN & API BUSINESS HUB)

412 Views

Hi,

I want to make API calls via Postman and API business hub, but I've got some problems. I have got the feeling that my URL i'm using is not supported for the API services but I have not a 100% concrete indicator, so i hope to find that out with your help.

1) My IOT Leonardo Fiori LP- URL has the format: https://<tenant-name>.leonardo-iot.cfapps.eu10.hana.ondemand.com while all the tutorials and api documentation shows the format https:// . sap-iot.cfapps.eu10.hana.ondemand.com.

2) I was making this tutorial of the sap hana academy: https://www.youtube.com/watch?v=9Kb08t3orXY&list=PLkzo92owKnVzQ7YTkThwiTGOautId39g6∈dex=19

After creating the packages, thing types and packages, they show how to make API calls with POSTMAN.

There, they use an API Collection with a custom environment. I have adapted all values to my account, but I can't get a JSON response but an html response. I have checked the values on typos.

here are the values for the url format https://{{tenant}}.{{endpoint}}/appcore-conf/Configuration('{{packagePrefix}}.{{packageId}}.{{number}}')

3) My Idea was to check API Business Hub and try making the calls there.

There, i realised, that my account is still somehow connected to the https://sap-iotaehandson2.iot-sap.cfapps.eu10.hana.ondemand.com/. I only could access their packages and not mine. I connected to the endpoint while making this tutorial, but I had a trial for SAP Leonardo then. https://developers.sap.com/tutorials/iotae-api-postman.html

I hope that i have described my problem properly and that solving the problem is not too hard.

Thanks!