I am struggling to access my git file using git APIs.
official Documentation : https://developer.github.com/v3/git/blobs/
Tha command I execute :
curl -v -H "Authorization: token 111111111111111111111111111" -H "Accept: application/vnd.github.v3.raw+json" -i
https://MYDOMAIN/api/v3/repos/MYOWNERNAME/MYREPOSITORY/git/blobs/{file sha value}
Error I am getting
{ "message": "Not Found", "documentation_url": "https://developer.github.com/enterprise/2.20/v3/git/blobs/#get-a-blob" }
- Connection #0 to host MYDOMAIN left intact
we are using GitHub Enterprise solutions.
I am not sure I have entered correct SHA value of the file also. Is there anyway to get the correct SHA value ?
Is there someone that use this way to access the git file ?