Commit all scripts
Some checks failed
Code Coverage / Generate Coverage Report (push) Has been cancelled
Tests / Run Tests (9.0.x) (push) Has been cancelled
Tests / Docker Build Test (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Yaojia Wang
2025-11-03 17:19:20 +01:00
parent ebdd4ee0d7
commit 4183b10b39
24 changed files with 4917 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
try {
$response = Invoke-WebRequest -Uri 'http://localhost:5167/api/auth/me' `
-Method Get -UseBasicParsing -ErrorAction Stop
Write-Host "API Status: $($response.StatusCode)" -ForegroundColor Green
Write-Host "API is responding!" -ForegroundColor Green
exit 0
} catch {
if ($_.Exception.Response.StatusCode.value__ -eq 401) {
Write-Host "API Status: 401 (Unauthorized - expected)" -ForegroundColor Green
Write-Host "API is responding!" -ForegroundColor Green
exit 0
} else {
Write-Host "API Error: $($_.Exception.Message)" -ForegroundColor Red
exit 1
}
}