The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get file content from feature branch using REST API 2.0

maxym
June 10, 2020

Hi, i am trying to retrieve file content from branch feature/test

 

curl --request GET "${CLOUD_API_ADDRESS}/repositories/${ORG_NAME}/${REPO_NAME}/src/feature/test/package.json" \ --user myname:mypassword
{"data":{"shas":["feature"]},"type":"error","error":{"message":"Commit not found","data":{"shas":["feature"]}}}

 But i got this error.

I assume it is because of slash in branch name, when i am trying to do the same but in branch feature - everything is fine.

 

How can i fix it? Thanks in advance

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events