controller: added rest trait