Public/Get-PSPublicAPICategory.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<#
.SYNOPSIS Gets a list of categories for the public API .DESCRIPTION Gets a list of categories for the public API .EXAMPLE Get-PSPublicAPICategory -Verbose Gets all categories of public APIs #> function Get-PSPublicAPICategory { [CmdletBinding()] param ( ) $uri = "${baseUri}categories" Write-Verbose -Message 'Getting a list of categories for the public API' $categories = Invoke-RestMethod -Method Get -UseBasicParsing -uri $uri return $categories } |