I have deployed a standard application on MindSphere with the application URL as below.
https://tenant-mysuperapp-tenant.eu1.mindsphere.io/
I also have API type application registered on MindSphere with the below URL.
https://gateway.eu1.mindsphere.io/api/mysuperapp-tenant/v1/
The endpoint on the API type application is
api/AlarmLists
When I'm trying to access the API endpoint in my UI application I'm getting a 404 error.
https://tenant-mysuperapp-tenant.eu1.mindsphere.io/api/AlarmLists
The above request returns a 404 error.
SolutionIn general, a 404 error message is a HTTP standard response code when a page/file is not available.
Please use the API endpoint to call the API application, the URL will be picked from the browser context.
This is an API application URL.
https://gateway.eu1.mindsphere.io/api/mysuperapp-tenant/v1/
Using following URL you will get the response.
https://tenant-mysuperapp-tenant.eu1.mindsphere.io/api/mysuperapp-tenant/v1/api/AlarmLists
Notes
For any questions or support in this matter, contact us through the support center.
Additional information can be found here: https://documentation.mindsphere.io/resources/html/developer-cockpit/en-US/132732141323.html
Notes