Skip to Main Content
Cumulocity IoT Feedback Portal
Status Clarification needed
Categories Platform Management
Created by Helmut Gansmüller
Created on Mar 11, 2024

change RestAPI base URL

For example:

https://a-sample-server.iot.cumulocity.com/inventory/managedObjects

get all managed objects and each can have some kbytes in size.

Now I could do a microservice which remove all data except ID and Name, because I only need them or it has cached all manged objects with relevant data and we don´t need to request the mongoDB. New Url could be:

https://a-sample-server.iot.cumulocity.com/service/only_id_and_name/inventory/managedObjects

Base urkl would be changed from https://a-sample-server.iot.cumulocity.com/ to https://a-sample-server.iot.cumulocity.com/service/only_id_and_name/

An other interesting feature could be to add virtual data points. When we requests supportedSeries of a device we can add virtual data points with a specific meaning. For example to calculate average or sum values of the real data points.

You could also use it to filter data, depending on another data point.

For example we only need measurements with datapoint "Temperature" when an other datapoint "NotCooled" is equal zero. Our microservice can do the work in background without to change the frontend.

Or we can use it to access old data stored on an external server and display it in data explorer:

https://a-sample-server.iot.cumulocity.com/service/old_backuped_data/measurement/measurements?source=123456&dateFrom=2019-09-25Z:00:00:00T&dateTo=2019-09-25Z:18:30:00T

  • Attach files
  • Admin
    Jane Porter
    Reply
    |
    Jul 8, 2024

    HI Helmut,

    Thank you for taking the time to raise this Insight and my apologies for the delay in getting back to you. I have read this through a number of times and have to admit I am struggling to understand the use case and benefit of these ideas. We like to have one business use case per Insight, which makes this Insight quite difficult to read, and it is unlikely we shall be changing the REST API in the near future. If you would like to set up a short call to discuss further please get in touch with me on jane.porter@softwareag.com.

    Kind regards, Jane.