﻿{
    "status": "success",
    "message": "MFU Wellness Center API",
    "data": {
        "version": "1.0.0",
        "status": "running",
        "server": "production",
        "endpoints": {
            "GET \/": "API Information",
            "POST \/api\/auth\/login": "Login with username and password",
            "POST \/api\/auth\/check-token": "Check if token is valid",
            "POST \/api\/auth\/logout": "Logout user",
            "GET \/api\/auth\/profile": "Get user profile",
            "GET \/api\/templates": "Get all templates",
            "GET \/api\/templates\/:id": "Get template by ID",
            "POST \/api\/templates": "Create new template",
            "PUT \/api\/templates\/:id": "Update template",
            "DELETE \/api\/templates\/:id": "Delete template",
            "PATCH \/api\/templates\/:id\/toggle": "Toggle template active status",
            "GET \/api\/activity-logs": "Get activity logs",
            "GET \/api\/reference\/parameters": "Get all reference parameters",
            "GET \/api\/reference\/parameters\/list": "Get parameters list for dropdown",
            "POST \/api\/reference\/parameters\/search": "Search normal values by gender\/age",
            "GET \/api\/reference\/categories": "Get all categories",
            "GET \/api\/tags": "Get all tags",
            "GET \/api\/tags\/popular": "Get popular tags",
            "GET \/api\/tags\/used": "Get used tags",
            "POST \/api\/tags": "Create new tag",
            "DELETE \/api\/tags\/:id": "Delete tag",
            "POST \/api\/tags\/search": "Search tags",
            "POST \/api\/tags\/increment-usage": "Increment tag usage",
            "GET \/api\/health-records": "Get all health records",
            "GET \/api\/health-records\/by-nid\/:nid": "Get health records by NID",
            "GET \/api\/health-records\/:id": "Get health record by ID",
            "DELETE \/api\/health-records\/:id": "Delete health record",
            "POST \/api\/pdf\/health-report": "Generate and download health report PDF",
            "POST \/api\/pdf\/save-health-report": "Save health report PDF to server",
            "GET \/api\/pdf\/download\/:filename": "Download existing PDF file",
            "DELETE \/api\/pdf\/delete\/:filename": "Delete PDF file"
        }
    }
}