MCPcopy
hub / github.com/1Panel-dev/MaxKB / post

Method post

apps/tools/views/tool.py:359–367  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

357 )
358 @log(menu='Tool', operate='Import tool', )
359 def post(self, request: Request, workspace_id: str):
360 return result.success(ToolSerializer.Import(
361 data={
362 'workspace_id': workspace_id,
363 'file': request.FILES.get('file'),
364 'user_id': request.user.id,
365 'folder_id': request.data.get('folder_id')
366 }
367 ).import_(ToolScope.WORKSPACE))
368
369 class Export(APIView):
370 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
import_Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected