packages/api-client/WorkbenchNodeShareApiApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| disableShare | POST /node/disableShare/{nodeId} | Disable node sharing |
| nodeShareInfo | GET /node/shareSettings/{nodeId} | Get node share info |
| readShareInfo | GET /node/readShareInfo/{shareId} | Get share node info |
| storeShareData | POST /node/storeShareData | Sotre share data |
| updateNodeShare | POST /node/updateShare/{nodeId} | Update node share setting |
ResponseDataVoid disableShare()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);
let body:.WorkbenchNodeShareApiApiDisableShareRequest = {
// string | node id
nodeId: "nodRTGSy43DJ9",
};
apiInstance.disableShare(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| nodeId | [string] | node id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataNodeShareSettingInfoVO nodeShareInfo()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);
let body:.WorkbenchNodeShareApiApiNodeShareInfoRequest = {
// string | node id
nodeId: "nodRTGSy43DJ9",
};
apiInstance.nodeShareInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| nodeId | [string] | node id | defaults to undefined |
ResponseDataNodeShareSettingInfoVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataNodeShareInfoVO readShareInfo()
get shared content according to share id
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);
let body:.WorkbenchNodeShareApiApiReadShareInfoRequest = {
// string | share id
shareId: "shrRTGSy43DJ9",
};
apiInstance.readShareInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| shareId | [string] | share id | defaults to undefined |
ResponseDataNodeShareInfoVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataStoreNodeInfoVO storeShareData(storeShareNodeRo)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);
let body:.WorkbenchNodeShareApiApiStoreShareDataRequest = {
// StoreShareNodeRo
storeShareNodeRo: {
spaceId: "spc20cjiwis2",
shareId: "shrSJ921CNsj",
},
// string | user socket id (optional)
xSocketId: "QkKp9XJEl",
};
apiInstance.storeShareData(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| storeShareNodeRo | StoreShareNodeRo | ||
| xSocketId | [string] | user socket id | (optional) defaults to undefined |
ResponseDataStoreNodeInfoVO
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataShareBaseInfoVo updateNodeShare(updateNodeShareSettingRo, )
Update node share setting stringObjectParams share setting parameter description: There are three option parameters for sharing settings. Only one can be set true, and more than two cannot be set to true at the same time. onlyRead: Bool, whether to set sharing only for others to view. canBeEdited: Bool, whether to set up sharing to others for collaborative editing. canBeStored: Bool, whether to set up sharing to others and save as a copy. Example: Set <Share Only for Others to View>, parameters:{"onlyRead": true}
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);
let body:.WorkbenchNodeShareApiApiUpdateNodeShareRequest = {
// UpdateNodeShareSettingRo
updateNodeShareSettingRo: {
props: "{"onlyRead": true}",
},
// string | node id
nodeId: "nodRTGSy43DJ9",
};
apiInstance.updateNodeShare(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| updateNodeShareSettingRo | UpdateNodeShareSettingRo | ||
| nodeId | [string] | node id | defaults to undefined |
ResponseDataShareBaseInfoVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]