Tango Feature Request 4: Defining a standard Tango REST API
|
|
---|---|
Hi Igor,
Cheers Emmanuel |
|
|
---|---|
Hi All, I have added pipes to the API. Manu For now we can just say that this must be visible in an admin panel (I suppose every implementation of the API provides one, where an authorized user can set implementation specific settings, like cache policy etc). History related calls we can add in later releases, if there will a demand. Let's say that PUT is implementation depended, i.e. write_read or write then read. Concerning w_value. For me it seems very hardware specific and I think we must leave it on the Tango level. Since we now develop a very high level API which may be used by completely new users with web development background, w_value is quite misleading. From what I have understood client may always cache it's own value. Consider this JS snippet:
In my opinion with this API we must force users to use this idiom when dealing with slow hardware:
this requires server side support as well - correct usage of states, but this we also must force. Note: I also keep in mind analog-to-digital hardware, i.e. when one writes 3,0 but gets 2,97 or 3,04. This must be handled in the 4th step. Of course it can be added later it if there will be a strong demand. BTW is it accessible in Java API? |
|
|
---|---|
Hi, The first implementation of the Tango REST API RC1 is here. There is also a new project has been started on the bitbucket: https://bitbucket.org/Ingvord/tango-rest-api/wiki/Home This project is dedicated to API specification. So if you want to add something to the specification you are welcome to open a new enhancement. Here is an example of such issue. Wiki itself is an repo so you can clone it and edit (perhaps you will need a bitbucket account to clone it). All the changes are visible, if you press history button in the right top corner. Project itself will be a maven java project with compatibility tests. I plan to add some next week. Issues related to the implementation go here. Cheers, |
|
|
---|---|
Hi, Few simple tests were added. Everyone can now validate his Tango REST API implementation against the spec:
|
|
|
---|---|
Hi All, The Tango REST API spec has been updated to version rc2 [Release Candidate 2]: 1) In the PUT request to Pipes data type is added [#1] 2) Command/Attribute history resource is added [#6] 3) GET, PUT, DELETE methods for an attribute's property [#3] 4) PUT method for the attribute's info [#5] *) Numbers in the square brackets are issues numbers in the tracker Tests and the implementation will be updated soon. Regards, |
|
|
---|---|
Hi Igor, Sounds good I will try soon this rc2. /Vincent
Vincent Hardion
Control System MAX IV Laboratory |
|
|
---|---|
Hi, mTangoREST.server-rc2-0.2 has been released!!! It now supports rc2 API spec, embeds tomcat server and is distributed as a single executable jar file, i.e.
starts Tango device with embedded REST server. For tomcat geeks war file is also available. Getting started documentation is located here. REST API test suite has been also updated to rc2. Have a nice weekend! Regards, |
|
|
---|---|
Hi Igor, I have some problem running mTango rc2
I am using Centos 7 with with rpms from Max IV public repo: http://pubrepo.maxiv.lu.se/rpm/el7/x86_64/ Best regards, Lukasz
Kind Regards,
Lukasz Zytniak Control Software Engineer ————————————————————— |
|
|
---|---|
Hi Lukasz, Thank you for reporting the problem. A ticket has been created: 101 Try to use rc2-0.3. I fixed some NPEs in the newer version. Hopefully these are the same. If not I need more info. Could you please attach full Tomcat's log and possibly log from your browser? For instance, in firefox there is a developer console which shows net activity. Does it happen all the time or just for a specific request? Basically I need context in which NPE is happening, i.e. request data, to investigate the problem Thank you in advance. Regards, |
|
|
---|---|
Hi Igor, I tried the last release candidate. It looks like the WAR assumes that the Database server is sys/database/2. Is it possible to configure this value ? At SOLEIL, our systems are deployed with database server named sys/database/dbds1 and sys/database/dbds2 thanks for your work and your help. Greg
|