03-26-2018 9:23 AM - edited 02-04-2024 2:50 AM
I'm trying to develop a custom application in Web-IDE, i.e. without using Web-IDE IoT widgets.
I successfully loaded all the things list in a model using Application Enablemen oData service (IOTAS-ADVANCEDLIST-THING-ODATA/CompositeThings/v1) but now I would like to read all details for each thing (thing properties and so on). I'm encountering some issues using IOTAS destination REST endpoint, because if I use the relative path (/appiot-mds/Things) in my code I get a 404 error, if I use the absolute path (https://<tenantID>.iot-sap.cfapps.eu10.hana.ondemand.com/appiot-mds/Things) the API call is redirected to the authorization page and I get a CORS error.
Any suggestion would be really appreciated.
Hi Luca,
the application "appiot-mds" is preconfigured in the Cloud Platform Destination IOTAS (You can check this via SAP Cloud Platform Cockpit -> Destination).
Please also take a look a tyour neo-app.json and check, how the path for the IOTAS destination is configured:
neo-app.json:
{
"path": "/backend/",
"target": {
"type": "destination",
"name": "IOTAS"
},
"description": "IoT AE"
},
Afterwards you should be able to access the Thing API with "backend/Things" as the resource URI.
Regards
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.