# File lib/chef_zero/rest_base.rb, line 53 def list_data(request, rest_path=nil) rest_path ||= request.rest_path begin data_store.list(rest_path) rescue DataStore::DataNotFoundError raise RestErrorResponse.new(404, "Object not found: #{build_uri(request.base_uri, rest_path)}") end end