update merge_request comments API to support line and path

#7813