Search code examples
c#azure-devopsazure-devops-artifacts

What class is this namespace in for Azure DevOps API rest call?


I am trying to make this call and cannot seem to locate where the Packages namespace is. I can't seem to find it online either.

The REST call is for the follow

https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/artifact-details/get-packages?view=azure-devops-rest-7.1#response

If you look at the response type, it is a Package[]. I am looking to deserialize it into that object type.

I am making other API calls and able to find their namespace.

I have the current nuget packages installed https://www.nuget.org/packages/Microsoft.TeamFoundationServer.Client/

<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="19.225.1" />

This is for Azure DevOps Services so the latest.


Solution

  • I am afraid there is no such .NET client for Feed and Artifact Packages management.

    When you check the document .NET client libraries for Azure DevOps and TFS and Azure DevOps .net Sdk, we could get the REST packages and detailed namespaces, but none of them for Feed and Artifact Packages management.

    Currently, we need to run the Rest API in project: Artifact Details - Get Packages, then we can custom the class and deserialize the API Response.

    On the other hand, you can submit a suggest ticket in the site: Developer Community which is our main forum for product suggestions to report this feature.