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

Method post

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

Source from the content-addressed store, hash-verified

593 get_operation_object=lambda r, k: get_tool_operation_object(k.get('tool_id')),
594 )
595 def post(self, request: Request, tool_id: str, workspace_id: str):
596 return result.success(ToolSerializer.UpdateStoreTool(data={
597 'tool_id': tool_id,
598 'user_id': request.user.id,
599 'workspace_id': workspace_id,
600 'download_url': request.data.get('download_url'),
601 'download_callback_url': request.data.get('download_callback_url'),
602 'icon': request.data.get('icon'),
603 'versions': request.data.get('versions'),
604 }).update_tool(request.data))
605
606 class PageToolRecord(APIView):
607 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 3

update_toolMethod · 0.80
successMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected