Continue the topic RESTful API for CRUD data point
-
Re: RESTful API to CRUD data source/data point/publisher
I am looking for a way to change data point value using Mango API.
I searched on the forum and ran into a relevant topic (shown above). The last reply has been more than 1 year old. Could you please provide some updates on this topic and point me to the right direction on how to implement that?
Thank you
Jack
-
Hi Jack, welcome to the forum!
The API has come a long way in the last year. We can't really keep every thread up to date forever, but we can answer your questions as they arise if you can't find the answer.
If you haven't seen swagger, I encourage you to modify your Mango/overrides/properties/env.properties or Mango/classes/env.properties file to have
swagger.enabled=true
(it is false by default). Then, after you restart Mango and login, you can navigate to /swagger and get a list of available API endpoints. You can use the GET /rest/v1/data-points/{xid} endpoint to get the model of your data point for the PUT endpoint.I have a feeling you're looking for the endpoint PUT /rest/v1/data-points/{xid}
-
One more quick note is that if you are trying to change the point value of a data point you may want to look at a PUT to /point-values/{xid}.
-
Thank you very much for your responses. I am new to the Mango system and still trying to get my ways around it, Really appreciate this forum and all the helps you all provided!