🤬
Get File
Get metadata and content of specified file
Http Method
GET
End Point
/~api/repositories/{projectId}/files/{revisionAndFile:.*}
Placeholder Description Example
{projectId} Project Id 1
{revisionAndFile} Revision And File some-branch-or-tag/path/to/file
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"sha" : "46c001b04cba0ca41588841f1ca32f50b582ee9b" ,
"base64Content" : "string" ,
"isPartial" : true ,
"path" : "string" ,
"size" : 1
}
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> https://crash.software/~api/repositories/1/files/some-branch-or-tag/path/to/file
Please wait...
Page is in error, reload to recover