Skip to content

Commit 33b48e6

Browse files
open api specs
1 parent 29f67de commit 33b48e6

File tree

2 files changed

+35
-319
lines changed

2 files changed

+35
-319
lines changed

api/specs/web-server/_folders.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
FoldersListQueryParams,
2424
FoldersPathParams,
2525
)
26+
from simcore_service_webserver.folders._workspaces_handlers import (
27+
_FolderWorkspacesPathParams,
28+
)
2629

2730
router = APIRouter(
2831
prefix=f"/{API_VTAG}",
@@ -92,3 +95,23 @@ async def delete_folder(
9295
_path: Annotated[FoldersPathParams, Depends()],
9396
):
9497
...
98+
99+
100+
### Move Folder to Workspace
101+
102+
103+
router = APIRouter(
104+
prefix=f"/{API_VTAG}",
105+
tags=["folders", "workspaces"],
106+
)
107+
108+
109+
@router.put(
110+
"/folders/{folder_id}/workspaces/{workspace_id}",
111+
status_code=status.HTTP_204_NO_CONTENT,
112+
summary="Move folder to the workspace",
113+
)
114+
async def replace_folder_workspace(
115+
_path: Annotated[_FolderWorkspacesPathParams, Depends()],
116+
):
117+
...

0 commit comments

Comments
 (0)