update merge_request comments API to support line and path

#7813 
Line is too long. [89/80]