MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / document_version

Function document_version

src/opencdeserver/api/app/api/documents.py:566–576  ·  view source on GitHub ↗
(
    document_id: str, version_index: int, current_user: User = Depends(get_current_active_user)
)

Source from the content-addressed store, hash-verified

564
565@router.get("/documents/1.0/document/{document_id}/version/{version_index}", tags=[""])
566def document_version(
567 document_id: str, version_index: int, current_user: User = Depends(get_current_active_user)
568) -> DocumentVersion:
569 # This endpoint returns the document version model itself.
570 get_document_version = doc_db.get_document_version(document_id, version_index, current_user)
571 doc_db.debug(
572 endpoint="document_version",
573 request={"document_id": document_id, "version_index": version_index},
574 response=get_document_version.dict(),
575 )
576 return get_document_version
577
578
579# ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----

Callers

nothing calls this directly

Calls 2

get_document_versionMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected