Module response

Source
Expand description

Standard API response wrapper.

ApiResponse<T> enforces a consistent JSON structure for all endpoints:

{
  "success": true|false,
  "data": { ... } | null,
  "message": "Description"
}

Use the provided constructors for success or error responses.

Structsยง

ApiResponse
Standardized API response wrapper for all outgoing JSON responses.