mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: add examples to create workflow and use sdk
This commit is contained in:
parent
16587fd7e1
commit
f041e6030d
18 changed files with 1038 additions and 7 deletions
|
|
@ -273,7 +273,13 @@ def _transform_schema_errors(
|
|||
return out
|
||||
|
||||
|
||||
@router.post("/create/definition")
|
||||
@router.post(
|
||||
"/create/definition",
|
||||
**sdk_expose(
|
||||
method="create_workflow",
|
||||
description="Create a new workflow from a workflow definition.",
|
||||
),
|
||||
)
|
||||
async def create_workflow(
|
||||
request: CreateWorkflowRequest, user: UserModel = Depends(get_user)
|
||||
) -> WorkflowResponse:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue