| 123456789101112131415161718192021222324252627 |
- # Test known working endpoints on fs-admin (8003)
- $headers = @{ Authorization = "Bearer dummy" }
- Write-Output "=== Testing known endpoints on fs-admin (8003) ==="
- $tests = @(
- "/system/dict/data/type/sys_normal_disable",
- "/his/healthTongue/list",
- "/his/doctor/list",
- "/his/storeOrder/list",
- "/his/storePayment/list"
- )
- foreach ($path in $tests) {
- try {
- $r = Invoke-WebRequest -Uri "http://localhost:8003$path" -Method GET -UseBasicParsing -ErrorAction Stop
- Write-Output "OK $path => HTTP $($r.StatusCode)"
- } catch {
- $status = $_.Exception.Response.StatusCode.value__
- if ($status -eq 401) {
- Write-Output "401 $path => auth required (but endpoint EXISTS)"
- } elseif ($status -eq 404) {
- Write-Output "404 $path => NOT FOUND"
- } else {
- Write-Output "$status $path"
- }
- }
- }
|