# Test Action Mappings API - Raw Response $ErrorActionPreference = "Stop" # Login $loginBody = @{ username = "admin" password = "admin123" } | ConvertTo-Json $loginResponse = Invoke-RestMethod -Uri "http://localhost:8000/api/v1/auth/login" ` -Method POST ` -Body $loginBody ` -ContentType "application/json" $token = $loginResponse.access_token # Get action mappings $headers = @{ "Authorization" = "Bearer $token" "accept" = "application/json" } $response = Invoke-RestMethod -Uri "http://localhost:8000/api/v1/action-mappings" ` -Method GET ` -Headers $headers Write-Host "Raw Response:" -ForegroundColor Cyan Write-Host ($response | ConvertTo-Json -Depth 10) -ForegroundColor White Write-Host "" Write-Host "Response Type: $($response.GetType().FullName)" -ForegroundColor Yellow Write-Host "Is Array: $($response -is [Array])" -ForegroundColor Yellow Write-Host "Count: $($response.Count)" -ForegroundColor Yellow