update merge_request comments API to support line and path

#7813 
Ah yeah, good catch! @zlx Can you please change the `nil` to `null`?