v1/docs/api-test-results.md
Date: June 9, 2025
Environment: Development
Server: http://localhost:8000
Total Tests: 26
Passed: 18
Failed: 8
Success Rate: 69.2%
ENVIRONMENT=development
DEBUG=true
ENABLE_AUTHENTICATION=false
ENABLE_RATE_LIMITING=false
MOCK_HARDWARE=true
MOCK_POSE_DATA=true
ENABLE_WEBSOCKETS=true
ENABLE_REAL_TIME_PROCESSING=true
/health/health - System Health Check/health/ready - Readiness Check/api/v1/pose/current - Current Pose Estimation/api/v1/pose/zones/{zone_id}/occupancy - Zone Occupancy/api/v1/pose/zones/summary - All Zones Summary/api/v1/pose/activities - Recent Activities/api/v1/pose/stats - Pose StatisticsThese endpoints require authentication, which is disabled in development:
/api/v1/pose/analyze - Pose Analysis/api/v1/pose/historical - Historical Data/api/v1/pose/calibrate - Start Calibration/api/v1/pose/calibration/status - Calibration Status/api/v1/stream/status - Stream Status/api/v1/stream/start - Start Streaming/api/v1/stream/stop - Stop Streaming/api/v1/stream/pose - Pose WebSocket/api/v1/stream/events - Events WebSocket/docs - API Documentation/openapi.json - OpenAPI Schema/ - Root Endpoint/api/v1/info - API Information/api/v1/status - API Status/nonexistent - 404 ErrorAuthentication is currently DISABLED in development mode. The following endpoints require authentication when enabled:
/api/v1/pose/analyze - Analyze pose data with custom parameters/api/v1/pose/historical - Query historical pose data/api/v1/pose/calibrate - Start system calibration/api/v1/pose/calibration/status - Get calibration status/api/v1/stream/start - Start streaming service/api/v1/stream/stop - Stop streaming service/api/v1/stream/clients - List connected clients/api/v1/stream/clients/{client_id} - Disconnect specific client/api/v1/stream/broadcast - Broadcast message to clientsRate limiting is currently DISABLED in development mode. When enabled:
Path-specific limits:
/api/v1/pose/current: 60 requests/minute/api/v1/pose/analyze: 10 requests/minute/api/v1/pose/calibrate: 1 request/5 minutes/api/v1/stream/start: 5 requests/minute/api/v1/stream/stop: 5 requests/minuteAll error responses follow a consistent format:
{
"error": {
"code": 404,
"message": "Endpoint not found",
"type": "http_error"
}
}
Validation errors include additional details:
{
"error": {
"code": 422,
"message": "Validation error",
"type": "validation_error",
"details": [...]
}
}
{
"type": "connection_established",
"client_id": "unique-client-id",
"timestamp": "2025-06-09T16:00:00.000Z",
"config": {
"zone_ids": ["zone_1"],
"min_confidence": 0.5,
"max_fps": 30
}
}
{
"type": "pose_update",
"timestamp": "2025-06-09T16:00:00.000Z",
"frame_id": "frame-123",
"persons": [...],
"zone_summary": {...}
}
{
"type": "error",
"message": "Error description"
}
add_data vs add_to_history)shutdown method implementation/ws/pose instead of /api/v1/stream/pose)ENABLE_AUTHENTICATION=trueENABLE_RATE_LIMITING=trueMOCK_HARDWARE=false and MOCK_POSE_DATA=falseCORS_ORIGINS to specific domainsSECRET_KEYTo run the API tests:
python scripts/test_api_endpoints.py
Test results are saved to: scripts/api_test_results_[timestamp].json
The WiFi-DensePose API is functioning correctly in development mode with:
The system is ready for development and testing. For production deployment, follow the recommendations above to enable security features and use real hardware/model implementations.