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

Method post

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

Source from the content-addressed store, hash-verified

516 get_operation_object=lambda r, k: get_tool_operation_object(k.get('tool_id')),
517 )
518 def post(self, request: Request, tool_id: str, workspace_id: str):
519 return result.success(ToolSerializer.AddInternalTool(data={
520 'tool_id': tool_id,
521 'user_id': request.user.id,
522 'workspace_id': workspace_id
523 }).add(request.data))
524
525 class StoreTool(APIView):
526 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 2

successMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected