adds most of REST to product controller