fix(rest): compilation problem in rest

related to #CAM-1395