I am trying to migrate code that we wrote against gitlab to stash (3.1), one of these is a rest request to get the content as a file.
https://{my-host}/rest/api/1.0/projects/CLOUD/repos/myrepo/browse/package.json
This return the content as a set of lines:
{
"lines": [
{
"text": "{"
},
{
"text": " \"name\": \"my-project\","
}
],
"start": 0,
"size": 3,
"isLastPage": false
}Is there a way to return the raw contents(text, base64) of the file instead of having text-text lines?
Also i can't tell from the rest api how to create or update just a file.