Devices restful api