{
    "name": "NikoGreen Real Estate API",
    "version": "1.0",
    "base": "/api",
    "endpoints": [
        {
            "path": "bootstrap.php",
            "methods": [
                "GET"
            ],
            "desc": "Load all tenant data"
        },
        {
            "path": "plots.php",
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ],
            "desc": "Plot CRUD"
        },
        {
            "path": "lands.php",
            "methods": [
                "GET",
                "POST",
                "DELETE"
            ],
            "desc": "Land CRUD + layout"
        },
        {
            "path": "clients.php",
            "methods": [
                "GET",
                "POST",
                "DELETE"
            ],
            "desc": "Client CRUD"
        },
        {
            "path": "payments.php",
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ],
            "desc": "Payments + receipt numbers"
        },
        {
            "path": "bookings.php",
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ],
            "desc": "Bookings + cancel/release"
        },
        {
            "path": "audit.php",
            "methods": [
                "GET",
                "POST"
            ],
            "desc": "Audit log"
        },
        {
            "path": "sent_docs.php",
            "methods": [
                "GET",
                "POST"
            ],
            "desc": "Document send history"
        },
        {
            "path": "plot_views.php",
            "methods": [
                "GET",
                "POST"
            ],
            "desc": "Plot view analytics"
        },
        {
            "path": "approvals.php",
            "methods": [
                "GET",
                "POST",
                "PUT"
            ],
            "desc": "Workflow approvals"
        },
        {
            "path": "site_visits.php",
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ],
            "desc": "Site visit booking"
        },
        {
            "path": "analytics.php",
            "methods": [
                "GET"
            ],
            "desc": "KPIs, land P&L, overdue"
        },
        {
            "path": "exports.php",
            "methods": [
                "GET"
            ],
            "desc": "CSV export ?type=payments|expenses|land_pnl"
        },
        {
            "path": "webhooks.php",
            "methods": [
                "GET",
                "POST",
                "DELETE"
            ],
            "desc": "Webhook subscriptions"
        },
        {
            "path": "backups.php",
            "methods": [
                "GET",
                "POST",
                "PUT"
            ],
            "desc": "Tenant backups"
        },
        {
            "path": "platform.php",
            "methods": [
                "GET",
                "POST"
            ],
            "desc": "Usage limits"
        }
    ]
}