# Test that output_action_names is included in action mappings response # Login $loginResponse = Invoke-RestMethod -Uri "http://localhost:8000/api/v1/auth/login" ` -Method POST ` -Body (@{username="admin"; password="admin123"} | ConvertTo-Json) ` -ContentType "application/json" $token = $loginResponse.access_token # Get action mappings $response = Invoke-RestMethod -Uri "http://localhost:8000/api/v1/configuration/action-mappings" ` -Headers @{Authorization = "Bearer $token"} ` -Method GET Write-Host "Total mappings: $($response.total_mappings)" -ForegroundColor Green Write-Host "Mappings with parameters: $($response.mappings_with_parameters)" -ForegroundColor Green Write-Host "`nFirst 5 mappings with action names:" -ForegroundColor Cyan $count = 0 foreach ($mapping in $response.mappings) { if ($count -ge 5) { break } Write-Host "`n[$($mapping.id)] $($mapping.name)" -ForegroundColor Yellow Write-Host " Output Action Names: $($mapping.output_action_names -join ', ')" -ForegroundColor White # Show details of first output action if ($mapping.output_actions.Count -gt 0) { $firstAction = $mapping.output_actions[0] Write-Host " First Action: $($firstAction.action)" -ForegroundColor Gray if ($firstAction.parameters.PSObject.Properties.Count -gt 0) { Write-Host " Parameters:" -ForegroundColor Gray foreach ($param in $firstAction.parameters.PSObject.Properties) { Write-Host " - $($param.Name) = $($param.Value)" -ForegroundColor DarkGray } } } $count++ }