tango-controls / rest-api

Tango REST API specification
http://tango-rest-api.readthedocs.io
10 stars 5 forks source link

Should command repsonse contains only result value? #8

Closed Ingvord closed 8 years ago

Ingvord commented 8 years ago

Originally reported by: Ingvord (Bitbucket: Ingvord, GitHub: Ingvord)


Instead of

#!json

{
   "name":"DbGetDeviceInfo",
   "input":"sys/tg_test/1",
   "output":{
        "lvalue":[1,5495],
        "svalue":["sys/tg_test/1","IOR:0100000017000000...3100"
,"4","TangoTest/test","precision-deb","4th March 2016 at 23:06:44","26th February 2016 at 23:03:07","TangoTest"
]},
   "_links":{"_self":"/rc2/devices/sys/database/2/commands/DbGetDeviceInfo"}
}

return

#!json

{
        "lvalue":[1,5495],
        "svalue":["sys/tg_test/1","IOR:0100000017000000...3100"
,"4","TangoTest/test","precision-deb","4th March 2016 at 23:06:44","26th February 2016 at 23:03:07","TangoTest"
]}

Ingvord commented 8 years ago

Original comment by Ingvord (Bitbucket: Ingvord, GitHub: Ingvord):


Done in RC3

Ingvord commented 8 years ago

Original comment by Ingvord (Bitbucket: Ingvord, GitHub: Ingvord):


As input argument can be quite complex it is better if we do not ping pong it. Client has always a chance to keep its argument.