Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download utils/type.ts from enzostvs/hub-api-playground: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/main/utils/type.ts
- Command line
-
hf download hf://spaces/enzostvs/hub-api-playground/utils/type.ts
-
curl -L -o type.ts https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/main/utils/type.ts
371 Bytes
| export interface ApiCollection { | |
| key: string | |
| endpoints: Array<ApiRoute> | |
| wip?: boolean | |
| } | |
| export interface ApiRoute { | |
| method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | |
| path: string, | |
| parameters?: any, | |
| body?: Array<Body>, | |
| tooltips?: Record<string, string> | |
| } | |
| export interface Body { | |
| key: string | |
| label: string | |
| required?: boolean | |
| defaultValue?: any | |
| } |