Tango Feature Request 4: Defining a standard Tango REST API
|
|
---|---|
Hi Greg, Yes, you are right - by default mtango uses "sys/database/2". You can alter it providing "TANGO_DB" system property to your tomcat instance, e.g. -DTANGO_DB=sys/database/dbds1 in tomcat's configuration file. Hope this helps. Regards, |
|
|
---|---|
Thanks for the property. It's OK now. Now Tomcat starts without error messages. But when I request something like /mtango/rest/devices/tango/tangotest/titan/double_scalar/value I have this error:
Do you have an idea about this error ? Greg |
|
|
---|---|
Hi Greg, Rest API version is missing in your URL. It must be: /mtango/rest/rc2/devices/tango/tangotest/titan/double_scalar/value Please note "rc2". Regards, |
|
|
---|---|
Hi, A new version of Tango REST API Specification has been released – RC3. Most notable changes:
– lists all known tango db hosts (initially only one, e.g. localhost:10000, filled in later when users access different tango hosts)
– lists all devices defined in tango://{host}:{port}/sys/database/2
Please note that project has been moved to Tango Controls Collaboration team Corresponding implementation has been release as well. Download: single executable jar zipped war Unfortunately this version is not backward compatible. One can use mtango.server-rc2-0.4 (download here) till new client libraries version will be released. |