Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Wednesday, 4 May 2022, 11:20 AM
Difference between devices and devices-api
I can give my app access to the devices app and to the devices-api. When calling the services info then, I get the below information. The information of both of them is the same, because if connect with a websocket it is to the URL wss://apps.kapsch.test/kapsch.test/devices which is the same for both because the last part is not used for this connection. Also my apps whether I enable them both, or only the devices app or only the devices-api. So what is the difference between the two options?


{
"api": "Services",
"mt": "ServicesInfo",
"services": [
{
"info": {},
"name": "calendar",
"title": "Calendar",
"url": "https://apps.kapsch.test/kapsch.test/calendar/innovaphone-calendar"
},
{
"name": "devices",
"title": "Devices",
"url": "https://apps.kapsch.test/kapsch.test/devices/innovaphone-devices"
},
{
"name": "devices-api",
"title": "DevicesApi",
"url": "https://apps.kapsch.test/kapsch.test/devices/innovaphone-devices-api"
},
{
"name": "files",
"title": "Files",
"url": "https://apps.kapsch.test/kapsch.test/files/innovaphone-files"
},
{
"info": {},
"name": "files-api",
"title": "FilesApi",
"url": "https://apps.kapsch.test/kapsch.test/files/innovaphone-files-api"
}
]
}
devicesapp.jpg

Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Wednesday, 4 May 2022, 02:01 PM
Re: Difference between devices and devices-api
Hello Wim,

technically it is the same API, but the divices-api App is hidden (so it is not possible to use the Devices App if only devices-api is enabled at a User Object).

http://wiki.innovaphone.com/index.php?title=Reference13r1:Concept_App_Service_Devices#Apps

Best Regards
Andreas Fink
Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Wednesday, 4 May 2022, 05:19 PM
Re: Difference between devices and devices-api
Ok, so that is done to avoid people need to see the app if they other apps that use it. How can I know the app is running? For the devices, I can see there is extra API information added to the services info that is only provided if the app is running. However, for the files api that we also use, this is not the case because the files api doesn't really publish this info anyway... we just found it out by reverse engineering. Is there already an update planned where the files app would also publish the api information?? This would be exteremely usefull because now it is a little bit of a gambe to assume the files app is called files (in theory, this can be different).
Are there other ways to check if an app is actually running?
← You can define your color theme preference here