Hi @daneshrao
We don't have an API to compare tags directly, but you can use a sequence of steps to get the information you need using multiple requests.
General steps:
curl -u <USER>:<PASSWORD> \You will need to run it one time for each tag and get the content for latestCommit field.
-X GET <BITBUCKER_URL>/rest/api/1.0/projects/<PROJECT>/repos/<REPO_SLUG>/tags/<TAG> \
curl -u <USER>:<PASSWORD> \
-X GET <BITBUCKER_URL>/rest/api/latest/projects/<PROJECT>/repos/<REPO_SLUG>/changes?since=<FIRST_COMMIT_HASH>&until=<SECOND_COMMIT_HASH>'
curl -u <USER>:<PASSWORD> \
-X GET <BITBUCKER_URL>/rest/api/latest/projects/<PROJECT>/repos/<REPO_SLUG>/diff?since=<FIRST_COMMIT_HASH>&until=<SECOND_COMMIT_HASH>'
I hope that is what you are looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.