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

Method get

apps/knowledge/views/document.py:144–149  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str, knowledge_id: str, document_id: str)

Source from the content-addressed store, hash-verified

142 ),
143 )
144 def get(self, request: Request, workspace_id: str, knowledge_id: str, document_id: str):
145 operate = DocumentSerializers.Operate(
146 data={"document_id": document_id, "knowledge_id": knowledge_id, "workspace_id": workspace_id}
147 )
148 operate.is_valid(raise_exception=True)
149 return result.success(operate.one())
150
151 @extend_schema(
152 description=_("Modify document"),

Callers

nothing calls this directly

Calls 3

is_validMethod · 0.95
oneMethod · 0.95
successMethod · 0.45

Tested by

no test coverage detected