Download frontend/src/api/workflows.js from shak3008/DocWeave: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/shak3008/DocWeave/resolve/main/frontend/src/api/workflows.js
- Command line
-
hf download hf://spaces/shak3008/DocWeave/frontend/src/api/workflows.js
-
curl -L -o workflows.js https://huggingface.co/spaces/shak3008/DocWeave/resolve/main/frontend/src/api/workflows.js
531 Bytes
| import { apiRequest } from "./client"; | |
| export async function getWorkflow(workflowId) { | |
| return apiRequest(`/workflows/${workflowId}`); | |
| } | |
| export async function listWorkflows(workspaceId, status = null) { | |
| let url = `/workflows?workspace_id=${encodeURIComponent(workspaceId)}`; | |
| if (status) url += `&status=${encodeURIComponent(status)}`; | |
| return apiRequest(url); | |
| } | |
| export async function getWorkflowByDocumentVersion(documentVersionId) { | |
| return apiRequest(`/workflows/by-document-version/${documentVersionId}`); | |
| } | |