Updated /api/heatmaps GET request handler to do proper parameter validation according to the API specification
Added parameter checking for PUT request on heatmap endpoint