JSONPlaceholder - Fake online REST API for developers
using power shell to do a rest api call:
#Reading feeds from PowerShell team blog
$feeds = Invoke-RestMethod http://blogs.msdn.com/b/powershell/atom.aspx
#Filtering and Formatting results
$feeds | ForEach {
[PSCustomObject]@{
Title=$_.title;
Author=$_.author.name;
Link=$_.link.href;
Date=$_.published
}
} | ConvertTo-Json OR Format-List
No comments:
Post a Comment