Skip to content

Commit 146eb85

Browse files
committed
PATCH: Add BCF document references (#903)
* add tests, improve documentation * remove useless field, add some tests * remove document_url * add warning
1 parent 26ba738 commit 146eb85

20 files changed

+1598
-352
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ bimdata_api_client/model/direction.py
4949
bimdata_api_client/model/direction_request.py
5050
bimdata_api_client/model/document.py
5151
bimdata_api_client/model/document_preview_file.py
52+
bimdata_api_client/model/document_reference.py
53+
bimdata_api_client/model/document_reference_request.py
5254
bimdata_api_client/model/document_text.py
5355
bimdata_api_client/model/document_with_element_list.py
5456
bimdata_api_client/model/drawing.py
@@ -322,6 +324,8 @@ docs/Direction.md
322324
docs/DirectionRequest.md
323325
docs/Document.md
324326
docs/DocumentPreviewFile.md
327+
docs/DocumentReference.md
328+
docs/DocumentReferenceRequest.md
325329
docs/DocumentText.md
326330
docs/DocumentWithElementList.md
327331
docs/Drawing.md
@@ -599,6 +603,8 @@ test/test_direction.py
599603
test/test_direction_request.py
600604
test/test_document.py
601605
test/test_document_preview_file.py
606+
test/test_document_reference.py
607+
test/test_document_reference_request.py
602608
test/test_document_text.py
603609
test/test_document_with_element_list.py
604610
test/test_drawing.py

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ from bimdata_api_client.model.coloring_definition import ColoringDefinition
6161
from bimdata_api_client.model.comment import Comment
6262
from bimdata_api_client.model.comment_request import CommentRequest
6363
from bimdata_api_client.model.detailed_extensions import DetailedExtensions
64+
from bimdata_api_client.model.document_reference import DocumentReference
65+
from bimdata_api_client.model.document_reference_request import DocumentReferenceRequest
6466
from bimdata_api_client.model.extensions import Extensions
6567
from bimdata_api_client.model.full_topic import FullTopic
6668
from bimdata_api_client.model.full_topic_request import FullTopicRequest
@@ -162,6 +164,7 @@ All URIs are relative to *http://localhost*
162164
Class | Method | HTTP request | Description
163165
------------ | ------------- | ------------- | -------------
164166
*BcfApi* | [**create_comment**](docs/BcfApi.md#create_comment) | **POST** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/comments | Create a comment
167+
*BcfApi* | [**create_document_reference**](docs/BcfApi.md#create_document_reference) | **POST** /bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references | Create a reference to a document
165168
*BcfApi* | [**create_extension_label**](docs/BcfApi.md#create_extension_label) | **POST** /bcf/2.1/projects/{projects_pk}/extension/label | Create a Label
166169
*BcfApi* | [**create_extension_priority**](docs/BcfApi.md#create_extension_priority) | **POST** /bcf/2.1/projects/{projects_pk}/extension/priority | Create a Priority
167170
*BcfApi* | [**create_extension_stage**](docs/BcfApi.md#create_extension_stage) | **POST** /bcf/2.1/projects/{projects_pk}/extension/stage | Create a Stage
@@ -184,6 +187,7 @@ Class | Method | HTTP request | Description
184187
*BcfApi* | [**download_bcf_export_xlsx**](docs/BcfApi.md#download_bcf_export_xlsx) | **GET** /bcf/2.1/projects/{id}/export-xlsx | Export project's topics in excel format
185188
*BcfApi* | [**full_update_bcf_project**](docs/BcfApi.md#full_update_bcf_project) | **PUT** /bcf/2.1/projects/{id} | Update all fields of a BCF project
186189
*BcfApi* | [**full_update_comment**](docs/BcfApi.md#full_update_comment) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/comments/{guid} | Update all fields of a comment
190+
*BcfApi* | [**full_update_document_reference**](docs/BcfApi.md#full_update_document_reference) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references | Add or update document references to a topic
187191
*BcfApi* | [**full_update_full_topic**](docs/BcfApi.md#full_update_full_topic) | **PUT** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Update all fields of a topic
188192
*BcfApi* | [**full_update_pin**](docs/BcfApi.md#full_update_pin) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{viewpoints_guid}/pin/{guid} | Update all fields of a Pin
189193
*BcfApi* | [**full_update_topic**](docs/BcfApi.md#full_update_topic) | **PUT** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Update all fields of a topic
@@ -194,6 +198,7 @@ Class | Method | HTTP request | Description
194198
*BcfApi* | [**get_comment**](docs/BcfApi.md#get_comment) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/comments/{guid} | Retrieve a comment
195199
*BcfApi* | [**get_comments**](docs/BcfApi.md#get_comments) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/comments | Retrieve all comments
196200
*BcfApi* | [**get_detailed_extensions**](docs/BcfApi.md#get_detailed_extensions) | **GET** /bcf/2.1/projects/{id}/detailed-extensions | Retrieve project detailed extensions
201+
*BcfApi* | [**get_document_references**](docs/BcfApi.md#get_document_references) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references | Retrieve all documents referenced by the topic
197202
*BcfApi* | [**get_extensions**](docs/BcfApi.md#get_extensions) | **GET** /bcf/2.1/projects/{id}/extensions | Retrieve project extensions
198203
*BcfApi* | [**get_full_topic**](docs/BcfApi.md#get_full_topic) | **GET** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Retrieve a full topic
199204
*BcfApi* | [**get_full_topics**](docs/BcfApi.md#get_full_topics) | **GET** /bcf/2.1/projects/{projects_pk}/full-topic | Retrieve all full topics
@@ -202,7 +207,6 @@ Class | Method | HTTP request | Description
202207
*BcfApi* | [**get_selections**](docs/BcfApi.md#get_selections) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid}/selection | Retrieve all selections of a viewpoint
203208
*BcfApi* | [**get_snapshot**](docs/BcfApi.md#get_snapshot) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid}/snapshot | Retrieve the viewpoint' snapshot
204209
*BcfApi* | [**get_topic**](docs/BcfApi.md#get_topic) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Retrieve a topic
205-
*BcfApi* | [**get_topic_document_references**](docs/BcfApi.md#get_topic_document_references) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references | Get all related documents
206210
*BcfApi* | [**get_topic_viewpoints**](docs/BcfApi.md#get_topic_viewpoints) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/topic-viewpoints | Retrieve all viewpoints attached to the topic
207211
*BcfApi* | [**get_topics**](docs/BcfApi.md#get_topics) | **GET** /bcf/2.1/projects/{projects_pk}/topics | Retrieve all topics
208212
*BcfApi* | [**get_topics_pins**](docs/BcfApi.md#get_topics_pins) | **GET** /bcf/2.1/projects/{projects_pk}/topics/pins | Get pins of all or many topics
@@ -556,6 +560,8 @@ Class | Method | HTTP request | Description
556560
- [DirectionRequest](docs/DirectionRequest.md)
557561
- [Document](docs/Document.md)
558562
- [DocumentPreviewFile](docs/DocumentPreviewFile.md)
563+
- [DocumentReference](docs/DocumentReference.md)
564+
- [DocumentReferenceRequest](docs/DocumentReferenceRequest.md)
559565
- [DocumentText](docs/DocumentText.md)
560566
- [DocumentWithElementList](docs/DocumentWithElementList.md)
561567
- [Drawing](docs/Drawing.md)

0 commit comments

Comments
 (0)