code: def merge_data(path_data, request_data):
      
      merged = request_data.copy() if request_data else {}
      merged.update(path_data or {})
      return merged
docs: Merge data from the URI path and the request.
  
      Path data wins.