Create endpoints for discussions on MR rapid diffs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

As noted in #469639 (comment 1985345296), we currently have different implementations for showing discussions on MR and commit pages. We need to create endpoints that can be used for MR and commits diffs in context of rapid diffs.

Based on recent discussion (as of 2024-07-16), we require that the endpoints return the same response format.

This issue is specific for discussion on MR page.

Edited by 🤖 GitLab Bot 🤖