The requirement is to fetch the release details as a list or at least the release IDs of all releases between two given release version. For example, assume latest release is "Release-10" and the requirement is to fetch the release data of all release from say "Release-5" to "Release-10".
To fetch release data of a particular release, below API can be used.
GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}?api-version=6.0
So, if we have the release ID's of all releases between base release ID and latest release ID, data can be fetched using above API call. Is it possible to fetch these details using Azure DevOps REST API?