[Tango REST API] Database endpoint

The Tango REST api does not define anything to access the database without to know exactly the name of the database device i.e sys/database/2
It would be great if the client application can just call a endpoint like /database à la pytango.:sunglasses:

Reference: Database API · Issue #5 · MaxIV-KitsControls/mtango-py · GitHub

@hardion,

I am not sure REST can get a reference to database. Could you please provide a guideline how it is done in Python?

Feature will be useful no doubts.

Hi @ingvord,

I means just a way to access the Database device without to know the name i.e sys/database/2

A way would be to link /tango/rest/rc3/hosts/computer/10000/devices/sys/database/2 to
/tango/rest/rc3/hosts/computer/10000/database (of course sys/database/2 can be something else)

or that

GET /tango/rest/rc3/hosts/computer/10000 gives the name of the database.

{ …,
“name”:“sys/database/2”,
“databases”:[“/tango/rest/rc3/hosts/computer/10000/sys/database/2”]

}

But it’s maybe probably the responsibility of the client application to do that.