All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
downloadPartTemplateFile | GET /files/{workspaceId}/part-templates/{templateId}/{fileName} | Download part template file |
uploadPartTemplateFiles | POST /files/{workspaceId}/part-templates/{templateId} | Upload part template files |
File downloadPartTemplateFile(workspaceId, templateId, fileName, opts)
Download part template file
var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;
// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';
var apiInstance = new DocdokuPlmApi.PartTemplateBinaryApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var fileName = "fileName_example"; // String | File name
var opts = {
'range': "range_example" // String | Range
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.downloadPartTemplateFile(workspaceId, templateId, fileName, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
fileName | String | File name | |
range | String | Range | [optional] |
File
uploadPartTemplateFiles(workspaceId, templateId, upload)
Upload part template files
var DocdokuPlmApi = require('docdoku-plm-api');
var defaultClient = DocdokuPlmApi.ApiClient.instance;
// Configure API key authorization: authorization
var authorization = defaultClient.authentications['authorization'];
authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//authorization.apiKeyPrefix = 'Token';
var apiInstance = new DocdokuPlmApi.PartTemplateBinaryApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var templateId = "templateId_example"; // String | Template id
var upload = "/path/to/file.txt"; // File |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.uploadPartTemplateFiles(workspaceId, templateId, upload, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
templateId | String | Template id | |
upload | File |
null (empty response body)