Generic API Response type used across all endpoints. Wraps the response data with status information.

interface ApiResponse<T> {
    status: string;
    message: string;
    result: T;
}

Type Parameters

  • T

Properties

Properties

status: string

Response status code

message: string

Response status message or error description

result: T

API response result data