mTango REST API roadmap
|
|
---|---|
Hi Igor, Using the Tango Rest API, and trying to get a device state, I get the following result. The device seems to work fine, and I can get its attributes and their values. (Note that doing the same request on my local Tango VM, I get the expected state result) Any hint? Thanks Jerome https://mstatus.esrf.fr:443/tango/rest/rc3/hosts/acudebian7.esrf.fr/10000/devices/sys/mcs/facade/state { "errors": [ { "description": "No filter configured with id 'json-response-fields-filter' (type java.lang.String)", "origin": "org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:625)", "reason": "JsonMappingException", "severity": "ERR" }, { "description": "No filter configured with id 'json-response-fields-filter' (type java.lang.String)", "origin": "org.codehaus.jackson.map.ser.impl.SimpleFilterProvider.findFilter(SimpleFilterProvider.java:108)", "reason": "IllegalArgumentException", "severity": "ERR" } ], "quality": "FAILURE", "timestamp": 1486133458681 } |
|
|
---|---|
Hi Jerome, Thanks for the report. Looks like a bug to me. I have created an issue and will try to reproduce and fix it. In the mean time you can work around this by reading state and status via attributes, i.e.
Cheers, |
|
|
---|---|
IngvordIgor, I managed to run TangoRestServer from my eclipse \o/. I found that the issue #121 can be solved by commenting the line 65 in JacksonConfiguration.java. I really think that no one will ask you to generate an image file from a DevDouble/DevShort/… Array. Scientists always wants to see the raw data (the 2D matrix) from their super expensive detector. If the value is a 2D Matrix we can use Plotly heatmap (https://plot.ly/javascript/heatmaps/) to make a viewer (we can work on this @SOLEIL). Greg |
|
|
---|---|
Hi Greg,I managed to run TangoRestServer from my eclipse \o/. Cool! I really think that no one will ask you to generate an image file from a DevDouble/DevShort/… Array. Scientists always wants to see the raw data (the 2D matrix) from their super expensive detector I think REST API spec must be altered, I have created an issue: look here. This change will increase the version number to rc-4 as it changes the behavior. If the value is a 2D Matrix we can use Plotly heatmap (https://plot.ly/javascript/heatmaps/) to make a viewer (we can work on this @SOLEIL). Sounds great to me. It would be nice to have some standalone component that could be easily integrated into 3rd party frameworks. For instance, I use webix for our projects. Regards, |
|
|
---|---|
Hi Jerome, I have just tried to get state from the facade and it works!
|
|
|
---|---|
Hi Igor, Yes indeed, seems it has been fixed, but I don't know how. Thanks! Jerome |
|
|
---|---|
Hi all, It looks like RC4 is now official and Igor has updated mTangoREST.server. EDIT: mTangoREST.server is now a separate project but has not been updated to RC4. Greg |
|
|
---|---|
Dear Igor, Greg and Jerome, I see that you are using http and not https. It is perhaps the difference with the test you did sometime ago?
Cheers
Jean-Michel |
|
|
---|---|
Hello Jean-Michel, I'm not sure Igor used http. Even using https, the links in the REST repsonse are referencing http (which is a (little) issue by the way). On my side, the https link from my previous post was not working 1 week ago, and is working now. Did anything changed on the facade server ? Thanks Jerome |
|
|
---|---|
except rebooting the machine on which the servers (rest + facade + HAproxy) are running, nothing has been changed.
Cheers
Jean-Michel |