3

A few days ago, Microsoft introduced Rest API for Winget. I want to use API that Microsoft uses to get packages on Winget in my C# application. But there is no documentation for this. Both projects are open source (winget-cli and winget-cli-restsource) Unfortunately, I'm not familiar with C++ code.

Can anyone help?

Alireza Ahmadi
  • 8,579
  • 5
  • 15
  • 42
Atena
  • 109
  • 2
  • 9

1 Answers1

1

Additional documentation and a PowerShell script to aid in deployment are in progress (as of today 10/7/2021).

https://github.com/microsoft/winget-cli-restsource/pull/61

Demitrius Nelon
  • 1,210
  • 1
  • 10
  • 29
  • any pratical example on how to use these API from (for instance) a shell script using `cURL` on Linux ? – Massimo Costa Mar 14 '23 at 16:44
  • Open API files are located at https://github.com/microsoft/winget-cli-restsource/tree/main/documentation. That should help get you started with the various endpoints. – Demitrius Nelon Apr 19 '23 at 17:31