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
- 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://git.codedune.app/~api/repositories/1/files/some-branch-or-tag/path/to/file