update merge_request comments API to support line and path

#7813 
Trailing whitespace detected.