Feeding an external application expecting RESTful webservice
-
Hi together,
I opened an new topic, because I couldn´t find helpful informations about "restful" in the forum. I think that is an often chosen way to push data, so it would be cool to have an complete documentation for that.
Case: An external system expects data from mango. It uses RESTful webservices.
Here is the definition:
The datastructure looks like:
{
"identifier": "1",
"timestamp": "1475157787",
"value" : "10",
"type" : "27",
"status" : "1",
"smgwid" : "1",
"obis" : "1-0:1.8.0",
"validation": "xyz"
}I tried to use the HTTP-sender method, but couldn´t find a successful way to get it going. Looking at Phil´s work from this topic
http://infiniteautomation.com/forum/topic/2187/how-to-use-publishers-http-sender/4
gives me hope that it could work, because he creates an URL with custom fields.
Has someone experiences with that method or suggestions how it could work with given system methods?
Regards
Sasa -
Hi Sasa,
I just answered you in the original thread: http://infiniteautomation.com/forum/topic/2187/how-to-use-publishers-http-sender
-
Hi Phil,
thank you for the help. I will start with the implementation work now.
Sasa
-
Mango has a RESTful API that you might be able to use. It will not automatically post data as you see here but it works like most normal API's where you request data. You can subscribe to web sockets to receive automatic data pushes when point values change.
See here for more information:
http://help.infiniteautomation.com/support/solutions/folders/14000104814 -
Thank you for the interesting news Joel!
I had a bit contact with swagger and will dive deeper now to get it going.Regards,
Sasa