Spaces:
Sleeping
Sleeping
Download src/common/interfaces/response.interface.ts from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/common/interfaces/response.interface.ts
- Command line
-
hf download hf://spaces/jinksQspider/openWa/src/common/interfaces/response.interface.ts
-
curl -L -o response.interface.ts https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/common/interfaces/response.interface.ts
512 Bytes
| // Common response interface for all API endpoints | |
| export interface ApiResponse<T = any> { | |
| success: boolean; | |
| data?: T; | |
| error?: ApiError; | |
| meta?: ApiMeta; | |
| } | |
| export interface ApiError { | |
| code: string; | |
| message: string; | |
| details?: Record<string, any>; | |
| } | |
| export interface ApiMeta { | |
| timestamp: string; | |
| requestId?: string; | |
| } | |
| export interface PaginatedResponse<T = any> extends ApiResponse<T[]> { | |
| pagination?: { | |
| page: number; | |
| limit: number; | |
| total: number; | |
| totalPages: number; | |
| }; | |
| } | |