Last active
February 14, 2018 20:40
-
-
Save torgro/7deefd379a8ae15dc3b09484fdc08176 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start-UDRestApi -Port 11000 -Endpoint @($CreateFileEndpoint, $GetFileEndpoint) | |
$securePwd = ConvertTo-SecureString -String bar -AsPlainText -Force | |
$authKey = [PSCredential]::New("foo", $securePwd) | Get-AuthorizationHeader | |
$invokeSplat = @{ | |
Uri = "http://localhost:11000/api/file" | |
Method = 'Get' | |
Headers = $authKey | |
} | |
Invoke-RestMethod @invokeSplat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment