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

Method post

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

Source from the content-addressed store, hash-verified

563 get_operation_object=lambda r, k: get_tool_operation_object(k.get('tool_id')),
564 )
565 def post(self, request: Request, tool_id: str, workspace_id: str):
566 return result.success(ToolSerializer.AddStoreTool(data={
567 'tool_id': tool_id,
568 'user_id': request.user.id,
569 'workspace_id': workspace_id,
570 }).add(request.data))
571
572 class UpdateStoreTool(APIView):
573 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 2

successMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected