With the below-mentioned API, we can get the previous file path of the file in case of rename.
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/changes
is there any to get previous commit details as well? or is there any API to get all the commits of a specified file?