mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 03:30:10 +00:00
Reorganize workflow API routes with proper router separation (#4628)
Some checks failed
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run
Auto Create GitHub Release on Version Change / check-version-change (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / check-version-change (push) Has been cancelled
Auto Create GitHub Release on Version Change / create-release (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / run-ci (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / build-sdk (push) Has been cancelled
Some checks failed
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run
Auto Create GitHub Release on Version Change / check-version-change (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / check-version-change (push) Has been cancelled
Auto Create GitHub Release on Version Change / create-release (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / run-ci (push) Has been cancelled
Build Skyvern SDK and publish to PyPI / build-sdk (push) Has been cancelled
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
566a108d5d
commit
0cbe5ee1e0
1 changed files with 18 additions and 6 deletions
|
|
@ -2519,12 +2519,18 @@ async def get_workflow_templates() -> list[Workflow]:
|
|||
@legacy_base_router.get(
|
||||
"/workflows/{workflow_permanent_id}",
|
||||
response_model=Workflow,
|
||||
tags=["agent"],
|
||||
include_in_schema=False,
|
||||
)
|
||||
@legacy_base_router.get("/workflows/{workflow_permanent_id}/", response_model=Workflow, include_in_schema=False)
|
||||
@base_router.get(
|
||||
"/workflows/{workflow_permanent_id}",
|
||||
response_model=Workflow,
|
||||
tags=["Workflows"],
|
||||
openapi_extra={
|
||||
"x-fern-sdk-method-name": "get_workflow",
|
||||
},
|
||||
)
|
||||
@legacy_base_router.get("/workflows/{workflow_permanent_id}/", response_model=Workflow, include_in_schema=False)
|
||||
@base_router.get("/workflows/{workflow_permanent_id}/", response_model=Workflow, include_in_schema=False)
|
||||
async def get_workflow(
|
||||
workflow_permanent_id: str,
|
||||
version: int | None = None,
|
||||
|
|
@ -2546,14 +2552,20 @@ async def get_workflow(
|
|||
@legacy_base_router.get(
|
||||
"/workflows/{workflow_permanent_id}/versions",
|
||||
response_model=list[Workflow],
|
||||
tags=["agent"],
|
||||
openapi_extra={
|
||||
"x-fern-sdk-method-name": "get_workflow_versions",
|
||||
},
|
||||
include_in_schema=False,
|
||||
)
|
||||
@legacy_base_router.get(
|
||||
"/workflows/{workflow_permanent_id}/versions/", response_model=list[Workflow], include_in_schema=False
|
||||
)
|
||||
@base_router.get(
|
||||
"/workflows/{workflow_permanent_id}/versions",
|
||||
response_model=list[Workflow],
|
||||
tags=["Workflows"],
|
||||
openapi_extra={
|
||||
"x-fern-sdk-method-name": "get_workflow_versions",
|
||||
},
|
||||
)
|
||||
@base_router.get("/workflows/{workflow_permanent_id}/versions/", response_model=list[Workflow], include_in_schema=False)
|
||||
async def get_workflow_versions(
|
||||
workflow_permanent_id: str,
|
||||
current_org: Organization = Depends(org_auth_service.get_current_org),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue