Generic API response structure for FoundryVTT REST API
Standardized response format for API calls including success status, data payload, and error information.
FoundryAPIResponse
const response: FoundryAPIResponse<FoundryActor[]> = { success: true, data: [], message: 'Actors retrieved successfully'}; Copy
const response: FoundryAPIResponse<FoundryActor[]> = { success: true, data: [], message: 'Actors retrieved successfully'};
Type of the response data
Optional
Generic API response structure for FoundryVTT REST API
Standardized response format for API calls including success status, data payload, and error information.
FoundryAPIResponse
Example