Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events