Files
family-hub/test_backend_api.bat

30 lines
738 B
Batchfile

@echo off
echo ========================================
echo Testing Backend API Connection
echo ========================================
echo.
echo Testing if backend is running on http://localhost:8001...
echo.
curl -X GET http://localhost:8001/health
echo.
echo.
echo Testing login endpoint with jess/password123...
echo.
curl -X POST http://localhost:8001/api/v1/auth/login ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "username=jess&password=password123"
echo.
echo.
echo ========================================
echo.
echo If you see "healthy" above, backend is running correctly.
echo If you see a token response, login is working!
echo If you see connection errors, the backend is not running.
echo.
pause