For example, I have a URL like this that works for a GET request:
https://stash-server.com/rest/api/1.0/projects/something/repos/project/commits/develop/
This works for the develop
branch, but when I try to do feature/something
to access commits on that branch, it returns 404 not found.
Documentation is lacking, I am not able to find how to access branch names like this...
Thanks!
The eventual solution/workaround, was to perform two REST calls, the first one to the /branches
endpoint, iterate over the results to find the correct branch, and get the latestCommit
hash, then make a REST call to commits/hashID
- this works around this issue of no way to access branch names like feature/something
directly via REST API.