Replace existing code in src/opencdeserver with code from the "Kontroll OpenCDE API:s server" POC project on https://github.com/marwiss/Kontroll

This commit is contained in:
marwiss
2024-02-03 13:03:58 +01:00
committed by Dion Moult
parent 6d7a6eeda7
commit 31be899dc9
124 changed files with 9066 additions and 3388 deletions
@@ -0,0 +1,26 @@
from typing import List, Optional
from pydantic import BaseModel
from models.documents_common import Document, DocumentVersion
# This file contains models that are not used at all, at least not yet.
# ---- not used at all, at least not yet ----
class DocumentQuery(BaseModel):
document_ids: List[str]
class DocumentUpload(Document):
session_file_id: Optional[str]
ifc_project: Optional[str]
class MetadataForDocumentsSaved(BaseModel):
documents: Optional[List[str]]
class DocumentQueryResult(BaseModel):
versions: List[DocumentVersion]