Invoke-RestMethod
say it: “in-VOHK REST METH-ud” /ɪnˈvoʊk rɛst ˈmɛθəd/
Calls a web API and turns the JSON into objects.
What is Invoke-RestMethod?
Invoke-RestMethod calls a web API and turns the JSON response into objects automatically.
$recipes = Invoke-RestMethod https://api.example.com/recipes
$recipes | Select-Object title, minutes
Level: Journeyman · More PowerShell terms at this level
Updated