Get Projects from source
Retrieve the list of projects from Azure DevOps or Jira. Returns all projects that are managed by the token or username/password.
POST api/_configs/project
--Cookie: graphNodeCookie=[ID]
--data-binary [ProjectObject]
URL Endpoint
api/_configs/project
Method
POST.
Parameters
See OData Filter syntax.
Request
Body
Body of source Azure DevOps. Go to your Azure DevOp and create a token to login.
{
"source": "Microsoft.Vsts",
"hostname": "https://yourdomain.visualstudio.com",
"token": "[this is your token]"
}
Body of source jira. Go to your Azure DevOp and create a token to login.
{
"source": "Jira",
"hostname": "yourdomain.atlassian.net",
"username": "youraccount@anadea",
"password": "[this is your token]"
}
Response
List of projects from source follow this schema.
{
"id": "[ProjectID]",
"name": "[ProjectName]",
"description": "[Description]",
"url": "[ProjectURL]"
}
Example
[
{
"id": "1db34929-5779-4a21-b986-b9846ab1f4b4",
"name": "Z Anadea Project",
"description": "Z Anadea Project",
"url": "https://anadea.visualstudio.com/_apis/projects/1db34929-5779-4a21-b986-b9846ab1f4b4"
},
{
"id": "ca306391-fd6d-410d-bbc9-b8fda338cf77",
"name": "D2C1 DevOps eTask Official Test Project",
"description": "D2C1 DevOps eTask Official Test Project",
"url": "https://anadea.visualstudio.com/_apis/projects/ca306391-fd6d-410d-bbc9-b8fda338cf77"
},
{
"id": "781fca80-7dc7-444b-88d3-dfc52a500582",
"name": "D2C2 DevOps eTask Official Test Project",
"description": "Testing D2C2 DevOps eTask Official Test Project",
"url": "https://anadea.visualstudio.com/_apis/projects/781fca80-7dc7-444b-88d3-dfc52a500582"
}
]