Public/Get-GW2WvW.ps1

<#
    .SYNOPSIS
        Retrieves the list of available WvW API endpoints.
 
    .DESCRIPTION
        The Get-GW2WvW cmdlet retrieves the list of available World vs. World API endpoints from the Guild Wars 2 API.
 
    .EXAMPLE
        Get-GW2WvW
        Retrieves the list of WvW endpoints.
 
    .NOTES
        API Endpoint: /v2/wvw
    #>

function Get-GW2WvW {
    
    [CmdletBinding()]
    param ()

    $Uri = "https://api.guildwars2.com/v2/wvw"

    try {
        Invoke-RestMethod -Uri $Uri -Method Get
    }
    catch {
        Write-Error "Failed to retrieve WvW endpoints: $_"
    }
}