how to compare two tags in a bitbucket server repo with api and retrive what all the informations affected between two tags
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> \-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.
It looks like you're new here. Sign in or register to get started.