{
  "name": "PostgreSQL Proxy Server",
  "version": "1.0.0",
  "description": "HTTP API for executing PostgreSQL queries remotely",
  "endpoints": {
    "GET /": "This welcome message (no auth)",
    "GET /health": "Server health check (no auth)",
    "GET /db-health": "Database health check (requires auth)",
    "GET /test": "Test database connection with details (requires auth)",
    "POST /query": "Execute SQL query (requires auth)"
  },
  "authentication": {
    "basicAuth": "Authorization: Basic base64(username:password)",
    "apiKey": "X-API-Key: your-api-key"
  },
  "example": {
    "curl": "curl -X POST http://localhost:3847/query -u admin:password -H \"Content-Type: application/json\" -d '{\"sql\": \"SELECT 1\"}'"
  }
}