TFS Git repo authentication failed via API -
we have setup new tfs hosted git repository. able access repo via git bash or via tfs browser.
the url looks like: http://mytfs.com:8080/tfs/defaultcollection/_git/sampletfsgit
now have java application pulls out source code various git server using git api. particular tfs hosted git repo not able pass authentication. gives me http response code: 401 same url: http://mytfs.com:8080/tfs/defaultcollection/_git/api/v3/session
does git api v3 not worked on tfs hosted git repo, or making mistakes here. please advice.
no, not supported. git, there special source import api. details can refer github link: https://developer.github.com/changes/2016-02-19-source-import-preview-api/
or can use rest api achieve it:
e.g.
get http://mytfsserver:8080/tfs/defaultcollection/_apis/git/repositories more detail info: https://www.visualstudio.com/integrate/api/git/overview
Comments
Post a Comment