{
    "success": true,
    "name": "The Leaf Residence API",
    "version": "1.0.0",
    "status": "active",
    "message": "Backend API is running successfully",
    "endpoints": {
        "authentication": {
            "POST \/routes\/auth.php": "Login for citizens and admins",
            "GET \/utils\/me.php": "Get current user session"
        },
        "citizens": {
            "GET \/routes\/citizens.php": "Get all citizens",
            "POST \/routes\/citizens.php": "Create new citizen",
            "PUT \/routes\/citizens.php": "Update citizen",
            "DELETE \/routes\/citizens.php?id={id}": "Delete citizen"
        },
        "admins": {
            "GET \/routes\/admins.php": "Get all admins"
        },
        "bills": {
            "GET \/routes\/bills.php": "Get all bills",
            "GET \/routes\/bills.php?citizenId={id}": "Get bills by citizen",
            "POST \/routes\/bills.php": "Create new bill",
            "PUT \/routes\/bills.php": "Update bill"
        },
        "announcements": {
            "GET \/routes\/announcements.php": "Get all announcements",
            "GET \/routes\/announcements.php?active=true": "Get active announcements only",
            "POST \/routes\/announcements.php": "Create announcement",
            "PUT \/routes\/announcements.php": "Update announcement",
            "DELETE \/routes\/announcements.php?id={id}": "Delete announcement"
        },
        "complaints": {
            "GET \/routes\/complaints.php": "Get all complaints",
            "GET \/routes\/complaints.php?citizenId={id}": "Get complaints by citizen",
            "POST \/routes\/complaints.php": "Create complaint",
            "PUT \/routes\/complaints.php": "Update complaint"
        },
        "guests": {
            "GET \/routes\/guests.php": "Get all guests",
            "GET \/routes\/guests.php?citizenId={id}": "Get guests by citizen",
            "POST \/routes\/guests.php": "Create guest",
            "PUT \/routes\/guests.php": "Update guest"
        },
        "emergency_logs": {
            "GET \/routes\/emergency_logs.php": "Get all emergency logs",
            "POST \/routes\/emergency_logs.php": "Create emergency log",
            "PUT \/routes\/emergency_logs.php": "Update emergency log"
        },
        "notifications": {
            "GET \/routes\/notifications.php": "Get all notifications",
            "GET \/routes\/notifications.php?recipientId={id}": "Get notifications by recipient",
            "POST \/routes\/notifications.php": "Create notification",
            "PUT \/routes\/notifications.php": "Update notification"
        },
        "tasks": {
            "GET \/routes\/tasks.php": "Get all tasks",
            "GET \/routes\/tasks.php?role={role}": "Get tasks by role",
            "POST \/routes\/tasks.php": "Create task",
            "PUT \/routes\/tasks.php": "Update task",
            "DELETE \/routes\/tasks.php?id={id}": "Delete task"
        },
        "family_members": {
            "GET \/routes\/family_members.php": "Get all family members",
            "GET \/routes\/family_members.php?citizenId={id}": "Get family members by citizen",
            "POST \/routes\/family_members.php": "Add family member",
            "DELETE \/routes\/family_members.php?id={id}": "Delete family member"
        },
        "vehicles": {
            "GET \/routes\/vehicles.php": "Get all vehicles",
            "GET \/routes\/vehicles.php?citizenId={id}": "Get vehicles by citizen",
            "POST \/routes\/vehicles.php": "Add vehicle",
            "DELETE \/routes\/vehicles.php?id={id}": "Delete vehicle"
        },
        "payment_features": {
            "POST \/routes\/bulk_payment.php": "Create bulk payment",
            "PUT \/routes\/bulk_payment.php": "Upload payment proof",
            "GET \/routes\/payment_plan.php?citizenId={id}": "Get payment plan",
            "POST \/routes\/payment_plan.php": "Save payment plan",
            "POST \/routes\/bulk_bill_generator.php": "Generate bulk bills",
            "POST \/routes\/invoice_generator.php": "Generate invoice",
            "POST \/routes\/payment_notification.php": "Send payment notification"
        },
        "utilities": {
            "GET \/utils\/test_connection.php": "Test database connection",
            "GET \/utils\/me.php": "Get current session user"
        }
    },
    "documentation": {
        "base_url": "http:\/\/localhost\/the-leaf-residence\/backend-api",
        "production_url": "https:\/\/jangkungstudio.my.id\/the-leaf-residence\/backend-api",
        "authentication": "Session-based authentication with cookies",
        "response_format": "{ \"success\": boolean, \"data\": any, \"message\": string }"
    }
}