functions/Get-AllProjects.ps1
<#
.SYNOPSIS Retrieves all projects from Code Dx. .DESCRIPTION Retrieves all projects from Code Dx that are available to the authenticated user. (Requires admin for global project list.) .EXAMPLE Get-AllProjects #> Function Get-AllProjects { [cmdletbinding()] param() $uri = $CDXSERVER + "/api/projects" $ProjectList = Invoke-RestMethod -Uri $uri -Method Get -Headers $headers -ContentType "application/json" return $ProjectList } |