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

Method get

apps/knowledge/views/knowledge.py:48–58  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

46 RoleConstants.WORKSPACE_MANAGE.get_workspace_role(), RoleConstants.USER.get_workspace_role()
47 )
48 def get(self, request: Request, workspace_id: str):
49 return result.success(KnowledgeSerializer.Query(
50 data={
51 'workspace_id': workspace_id,
52 'folder_id': request.query_params.get('folder_id'),
53 'name': request.query_params.get('name'),
54 'desc': request.query_params.get("desc"),
55 'scope': KnowledgeScope.WORKSPACE,
56 'user_id': request.user.id
57 }
58 ).list())
59
60 class Operate(APIView):
61 authentication_classes = [TokenAuth]

Callers 9

putMethod · 0.45
putMethod · 0.45
innerMethod · 0.45
getMethod · 0.45
putMethod · 0.45
postMethod · 0.45
getMethod · 0.45
getMethod · 0.45
postMethod · 0.45

Calls 2

successMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected