update merge_request comments API to support line and path

#7813 
Line is too long. [93/80]<br>Redundant curly braces around a hash parameter.