API Health & Testing

Check PDA authentication, master-data downloads, and scan-log uploads safely.

PDA API diagnostic suite

Tests real Laravel API routes and middleware without sending keys to your browser.

Server-side tests
@if($errors->any())
{{ $errors->first() }}
@endif @if($devices->isEmpty())
No active PDA device found. Register and activate a device under Devices before testing.
@else
@csrf
@endif
@isset($results) @php($passed = collect($results)->where('ok', true)->count())

Checks performed

{{ count($results) }}

Passed

{{ $passed }}

Failed

{{ count($results) - $passed }}

Endpoint results

Response times measured inside the Laravel server, not over the PDA network.

@foreach($results as $result)@endforeach
TestResultHTTPDurationDetails / response preview
{{ $result['name'] }}{{ $result['ok'] ? 'PASS' : 'FAIL' }}{{ $result['http'] ?? 'ERR' }}{{ $result['ms'] }} ms
{{ $result['detail'] }}
@if(!empty($result['response']))
View response summary
{{ json_encode($result['response'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif

A PASS means the local API route behaved as expected. It does not prove the API is reachable from the physical PDA network. Empty download responses may be valid when no registrations exist.

@endisset

Safety and scope

Upload tests use generated dummy RFID data and a unique record ID, retry the same upload to confirm duplicate prevention, then roll back the database transaction. They do not create permanent sample records. Read-only sync checks can update the device's last-sync timestamp. This page is restricted to admin users.