All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
createMilestone | POST /workspaces/{workspaceId}/changes/milestones | Create a new milestone |
getMilestone | GET /workspaces/{workspaceId}/changes/milestones/{milestoneId} | Get a milestone by id |
getMilestones | GET /workspaces/{workspaceId}/changes/milestones | Get milestones for given parameters |
getOrdersByMilestone | GET /workspaces/{workspaceId}/changes/milestones/{milestoneId}/orders | Get change orders for a given milestone |
getRequestsByMilestone | GET /workspaces/{workspaceId}/changes/milestones/{milestoneId}/requests | Get change requests for a given milestone |
removeMilestone | DELETE /workspaces/{workspaceId}/changes/milestones/{milestoneId} | Delete milestone |
updateMilestone | PUT /workspaces/{workspaceId}/changes/milestones/{milestoneId} | Update milestone |
updateMilestoneACL | PUT /workspaces/{workspaceId}/changes/milestones/{milestoneId}/acl | Update ACL of a milestone |
MilestoneDTO createMilestone(workspaceId, body)
Create a new milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var body = new DocdokuPlmApi.MilestoneDTO(); // MilestoneDTO | Milestone to create
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createMilestone(workspaceId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
body | MilestoneDTO | Milestone to create |
MilestoneDTO getMilestone(workspaceId, milestoneId)
Get a milestone by id
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getMilestone(workspaceId, milestoneId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id |
[MilestoneDTO] getMilestones(workspaceId)
Get milestones for given parameters
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getMilestones(workspaceId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id |
[ChangeOrderDTO] getOrdersByMilestone(workspaceId, milestoneId)
Get change orders for a given milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getOrdersByMilestone(workspaceId, milestoneId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id |
[ChangeRequestDTO] getRequestsByMilestone(workspaceId, milestoneId)
Get change requests for a given milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getRequestsByMilestone(workspaceId, milestoneId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id |
removeMilestone(workspaceId, milestoneId)
Delete milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.removeMilestone(workspaceId, milestoneId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id |
null (empty response body)
MilestoneDTO updateMilestone(workspaceId, milestoneId, body)
Update milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var body = new DocdokuPlmApi.MilestoneDTO(); // MilestoneDTO | Milestone to update
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateMilestone(workspaceId, milestoneId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id | |
body | MilestoneDTO | Milestone to update |
updateMilestoneACL(workspaceId, milestoneId, body)
Update ACL of a milestone
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.MilestonesApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var milestoneId = 56; // Number | Milestone id
var body = new DocdokuPlmApi.ACLDTO(); // ACLDTO | ACL rules to set
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.updateMilestoneACL(workspaceId, milestoneId, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
milestoneId | Number | Milestone id | |
body | ACLDTO | ACL rules to set |
null (empty response body)