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

interface ApiResponse<T> {
    code: number;
    message: string;
    data: T;
}

Type Parameters

  • T

Properties

Properties

code: number

Response status code

message: string

Response status message or error description

data: T

API response result data