Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 6069738

Browse files
committed
PATCH: create DMS Tree return same datas as the get route (#587)
1 parent f5a4e78 commit 6069738

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/CollaborationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ Name | Type | Description | Notes
759759

760760
## createDMSTree
761761

762-
> [Folder] createDMSTree(cloudPk, id, writeFolderRequest)
762+
> Folder createDMSTree(cloudPk, id, writeFolderRequest)
763763
764764
Create a complete DMS tree
765765

@@ -810,7 +810,7 @@ Name | Type | Description | Notes
810810

811811
### Return type
812812

813-
[**[Folder]**](Folder.md)
813+
[**Folder**](Folder.md)
814814

815815
### Authorization
816816

@@ -889,7 +889,7 @@ Name | Type | Description | Notes
889889
890890
Create a document
891891

892-
Create a document. If the document is one of {'DWG', 'DAE', 'OBJ', 'GLTF', 'POINT_CLOUD', 'BFX', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
892+
Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'DXF', 'DAE', 'OBJ', 'BFX', 'GLTF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
893893

894894
### Example
895895

src/api/CollaborationApi.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ export default class CollaborationApi {
695695
* @param {Number} cloudPk
696696
* @param {Number} id A unique integer value identifying this project.
697697
* @param {Array.<module:model/WriteFolderRequest>} writeFolderRequest
698-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Folder>} and HTTP response
698+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Folder} and HTTP response
699699
*/
700700
createDMSTreeWithHttpInfo(cloudPk, id, writeFolderRequest) {
701701
let postBody = writeFolderRequest;
@@ -726,7 +726,7 @@ export default class CollaborationApi {
726726
let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer'];
727727
let contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
728728
let accepts = ['application/json'];
729-
let returnType = [Folder];
729+
let returnType = Folder;
730730
return this.apiClient.callApi(
731731
'/cloud/{cloud_pk}/project/{id}/dms-tree', 'POST',
732732
pathParams, queryParams, headerParams, formParams, postBody,
@@ -740,7 +740,7 @@ export default class CollaborationApi {
740740
* @param {Number} cloudPk
741741
* @param {Number} id A unique integer value identifying this project.
742742
* @param {Array.<module:model/WriteFolderRequest>} writeFolderRequest
743-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Folder>}
743+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Folder}
744744
*/
745745
createDMSTree(cloudPk, id, writeFolderRequest) {
746746
return this.createDMSTreeWithHttpInfo(cloudPk, id, writeFolderRequest)
@@ -800,7 +800,7 @@ export default class CollaborationApi {
800800

801801
/**
802802
* Create a document
803-
* Create a document. If the document is one of {'DWG', 'DAE', 'OBJ', 'GLTF', 'POINT_CLOUD', 'BFX', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
803+
* Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'DXF', 'DAE', 'OBJ', 'BFX', 'GLTF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
804804
* @param {Number} cloudPk A unique integer value identifying this cloud.
805805
* @param {Number} projectPk A unique integer value identifying this project.
806806
* @param {String} name Shown name of the file
@@ -868,7 +868,7 @@ export default class CollaborationApi {
868868

869869
/**
870870
* Create a document
871-
* Create a document. If the document is one of {'DWG', 'DAE', 'OBJ', 'GLTF', 'POINT_CLOUD', 'BFX', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
871+
* Create a document. If the document is one of {'POINT_CLOUD', 'DWG', 'DXF', 'DAE', 'OBJ', 'BFX', 'GLTF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
872872
* @param {Number} cloudPk A unique integer value identifying this cloud.
873873
* @param {Number} projectPk A unique integer value identifying this project.
874874
* @param {String} name Shown name of the file

0 commit comments

Comments
 (0)