SchemaModule 3.0.1 Release
I’ve just released a new version of my PowerShell SchemaModule.
This release adds a Headers parameter that accepts a hashtable of key/value pairs. This provides the ability to retrieve a schema from a server or REST endpoint that requires an api-key. Creating the headers is pretty straightforward:
$Headers = @{}
$Headers.Add('Content-Type','application/json')
$Headers.Add('Accept','application/json')
$Headers.Add('Cache-Control','no-cache')
This example shows how to create a hashtable and add key/value pairs to it. These can then be passed along the command-line with the optional param -Headers.
The module can be downloaded from github or the PowerShell Gallery.
Feel free to leave comments or questions in the Discussion board.