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,

  1. master
  2. feature/test
  3. 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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -