# Test alternative API routes for getting APIG data $ct = @{ "Content-Type" = "application/json" } $id = "Vo3ROWEvDy" # Try different REST route patterns $routes = @( @{ url = "https://server.fmode.cn/api/apig/getApigById"; body = @{ objectId = $id } }, @{ url = "https://server.fmode.cn/api/apig/detail"; body = @{ id = $id } }, @{ url = "https://server.fmode.cn/api/apig/info"; body = @{ id = $id } }, @{ url = "https://server.fmode.cn/api/apig/get"; body = @{ id = $id } }, @{ url = "https://server.fmode.cn/api/apig/getApig"; body = @{ authid = $id; apigId = $id } } ) foreach ($r in $routes) { Write-Host "=== $($r.url) ===" -ForegroundColor Cyan $jsonBody = $r.body | ConvertTo-Json -Compress try { $resp = Invoke-RestMethod -Uri $r.url -Method POST -Headers $ct -Body $jsonBody -TimeoutSec 8 Write-Host "OK:" ($resp | ConvertTo-Json -Depth 3 -Compress) -ForegroundColor Green } catch { $code = "" if ($_.Exception.Response) { $code = $_.Exception.Response.StatusCode } Write-Host "Error: $code $($_.Exception.Message)" -ForegroundColor Red } Write-Host "" } # Also list API routes by requesting root Write-Host "=== Try /api/apig ===" -ForegroundColor Cyan try { $resp = Invoke-WebRequest -Uri "https://server.fmode.cn/api/apig" -Method GET -TimeoutSec 8 Write-Host "Status:" $resp.StatusCode Write-Host $resp.Content.Substring(0, [Math]::Min(500, $resp.Content.Length)) } catch { Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red }