Helper tools for the Azure DevOps rest api .net SDK
==========
- Add nuget package:
Install-Package AzureDevOps.RestAPI.NetSDK.Helper
- In your application, you must initialize the helper with your Azure DevOps credentials. Open your program.cs or Startup.cs and add the following code:
builder.Services.RegisterVssConnection("https://dev.azure.com/{organization}", "{PAT}");A VssConnection object is now registered in the dependency injection container. You can now inject it in your services or controllers.
public class MyService
{
private readonly VssConnection _vssConnection;
public MyService(VssConnection vssConnection)
{
_vssConnection = vssConnection;
}
}Here is the list of helpers available in the package:
| Domain | Function | Description | Status |
|---|---|---|---|
| Projects | GetProjectList(...) | Get all projects | ✅ |
| Backlog | GetQueries(...) | Returns all queries available in a project | ✅ |
| Backlog | GetQueryResults(...) | Execute a query and retrive results | ✅ |
| Backlog | DownloadAttachment(...) | Download an attachment for a specific work item | 📆 |
| Wiki | GetWikis() | Retreive all available wikis | ✅ |
| Wiki | GetWiki(...) | Get a Wiki description by identifier | ✅ |
| Wiki | GetWikiPages(...) | Retreive all pages for a dedicated Wiki | ✅ |
| Wiki | GetWikiPageText(...) | Retreive string content for a wiki page | ✅ |
✅ : Available
📆 : Planned in the roadmap
You can find more details and samples in the Wiki.
Do not hesitate to check unit tests on the solution. It's a good way to check how transformations are tested.
Also, to get more samples, go to the Wiki.
Do not hesitate to contribute.
If you have any questions, problems or suggestions, create an issue or fork the project and create a Pull Request.
You want more ? Feel free to create an issue or contribute by adding new functionnalities by forking the project and create a pull request.
And if you like this project, don't forget to star it !
You can also support me with a coffee :
