How to get list of branches on a atlassian-stash project using REST call in JAVA -
i have found stash provide rest api details created projects in repository.i newbie stash api.please let me know how can list branches under stash project via rest call.
sample stash project path
https://stash.test.local/projects/dev/repos/central-project/browse
under above central-project contains multiple branches like,
- master
- feature/test
- feature/test1
i want list of branches via rest call.
i have found way it.for rest call used rest-assured in java.
restassured.baseuri = "https://stash.test.local"; restassured.basepath = "/rest/api/1.0/projects/dev/repos/central-project/branches"; restassured.authentication = restassured.preemptive().basic( username, password); response response = restassured.get(); string branchjson = response.asstring();
Comments
Post a Comment