Reports effective SVN/Git mapping either for VCS authors or paths.
POST subgit/rest/map
Command:
$ curl -X POST -H "Content-Type: application/json" http://host:8990/subgit/rest/map
Input data:
{
"author": "svnUser | Git Author <author@mail>"
}
OR{
"paths": [ "refs/heads/master", "path", "svnURL" ...]
}
Sample authors output:
{
"mappings" : [
{
"gitAuthor" : "Alex <kitaev@tmatesoft.com>",
"gitRepositoryPath" : "/path/to/repo1.git",
"svnAuthor" : "alex"
},
{
"gitAuthor" : "alex <alex@yahoo.com>",
"gitRepositoryPath" : "/path/to/repo2.git",
"svnAuthor" : "alex"
}
]
}
Sample paths output:
{
"mappings" :
[
{
"gitPath" : "",
"gitRef" : "refs/heads/master",
"gitRepositoryPath" : "/path/to/repo1.git",
"svnUrl" : "https://svn.tmatesoft.com/repos/test/trunk",
"svnPath" : "trunk",
"svnLocationUrl" : "https://svn.tmatesoft.com/repos/test"
},
{
"gitPath" : "",
"gitRef" : "refs/heads/master",
"gitRepositoryPath" : "/path/to/repo2.git",
"svnUrl" : "svn://192.168.9.12/test/trunk",
"svnPath" : "trunk",
"svnLocationUrl" : "svn://192.168.9.12/test"
}
]
}