Added support for dumping more than the first level for an individual resource. Currently hardcoded to 1 in rest_handler