All URIs are relative to http://docdokuplm.net/eplmp-server-rest/api
Method | HTTP request | Description |
---|---|---|
createProvider | POST /admin/providers | Create a new OAuth provider |
enableAccount | PUT /admin/accounts/{login}/enable | Enable or disable account |
enableWorkspace | PUT /admin/workspace/{workspaceId}/enable | Enable or disable workspace |
getAccounts | GET /admin/accounts | Get all registered accounts |
getDetailedProvider | GET /admin/providers/{id} | Get detailed provider |
getDetailedProviders | GET /admin/providers | Get detailed providers |
getDiskSpaceUsageStats | GET /admin/disk-usage-stats | Get disk usage stats |
getDocumentsStats | GET /admin/documents-stats | Get documents stats |
getPartsStats | GET /admin/parts-stats | Get parts stats |
getPlatformOptions | GET /admin/platform-options | Get platform options |
getProductsStats | GET /admin/products-stats | Get products stats |
getUsersStats | GET /admin/users-stats | Get users stats |
indexAllWorkspaces | PUT /admin/index-all | Synchronize index for all workspaces |
indexWorkspaceData | PUT /admin/index/{workspaceId} | Synchronize index for given workspace |
removeProvider | DELETE /admin/providers/{id} | Delete OAuth provider |
setPlatformOptions | PUT /admin/platform-options | Set platform options |
updateAccount | PUT /admin/accounts | Update account |
updateProvider | PUT /admin/providers/{id} | Update OAuth provider |
OAuthProviderPublicDTO createProvider(body)
Create a new OAuth provider
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.AdminApi();
var body = new DocdokuPlmApi.OAuthProviderPublicDTO(); // OAuthProviderPublicDTO | Updated account
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createProvider(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | OAuthProviderPublicDTO | Updated account |
AccountDTO enableAccount(login, enabled)
Enable or disable account
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.AdminApi();
var login = "login_example"; // String | Workspace id
var enabled = true; // Boolean | Enabled
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.enableAccount(login, enabled, callback);
Name | Type | Description | Notes |
---|---|---|---|
login | String | Workspace id | |
enabled | Boolean | Enabled |
WorkspaceDTO enableWorkspace(workspaceId, enabled)
Enable or disable workspace
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.AdminApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var enabled = true; // Boolean | Enabled
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.enableWorkspace(workspaceId, enabled, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id | |
enabled | Boolean | Enabled |
[AccountDTO] getAccounts()
Get all registered accounts
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getAccounts(callback);
This endpoint does not need any parameter.
OAuthProviderPublicDTO getDetailedProvider(id)
Get detailed provider
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.AdminApi();
var id = 56; // Number | Provider id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDetailedProvider(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | Provider id |
[OAuthProviderPublicDTO] getDetailedProviders()
Get detailed providers
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDetailedProviders(callback);
This endpoint does not need any parameter.
'String' getDiskSpaceUsageStats()
Get disk usage stats
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDiskSpaceUsageStats(callback);
This endpoint does not need any parameter.
'String'
'String' getDocumentsStats()
Get documents stats
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDocumentsStats(callback);
This endpoint does not need any parameter.
'String'
'String' getPartsStats()
Get parts stats
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPartsStats(callback);
This endpoint does not need any parameter.
'String'
PlatformOptionsDTO getPlatformOptions()
Get platform options
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getPlatformOptions(callback);
This endpoint does not need any parameter.
'String' getProductsStats()
Get products stats
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getProductsStats(callback);
This endpoint does not need any parameter.
'String'
'String' getUsersStats()
Get users stats
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getUsersStats(callback);
This endpoint does not need any parameter.
'String'
indexAllWorkspaces()
Synchronize index for all workspaces
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.AdminApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.indexAllWorkspaces(callback);
This endpoint does not need any parameter.
null (empty response body)
indexWorkspaceData(workspaceId)
Synchronize index for given workspace
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.AdminApi();
var workspaceId = "workspaceId_example"; // String | Workspace id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.indexWorkspaceData(workspaceId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | Workspace id |
null (empty response body)
removeProvider(id)
Delete OAuth provider
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.AdminApi();
var id = 56; // Number | OAuthProvider id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.removeProvider(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | OAuthProvider id |
null (empty response body)
setPlatformOptions(opts)
Set platform options
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.AdminApi();
var opts = {
'body': new DocdokuPlmApi.PlatformOptionsDTO() // PlatformOptionsDTO | Options to set
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.setPlatformOptions(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | PlatformOptionsDTO | Options to set | [optional] |
null (empty response body)
AccountDTO updateAccount(body)
Update account
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.AdminApi();
var body = new DocdokuPlmApi.AccountDTO(); // AccountDTO | Updated account
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateAccount(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | AccountDTO | Updated account |
OAuthProviderPublicDTO updateProvider(id, body)
Update OAuth provider
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.AdminApi();
var id = 56; // Number | OAuthProvider id
var body = new DocdokuPlmApi.OAuthProviderPublicDTO(); // OAuthProviderPublicDTO | Updated provider
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateProvider(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | OAuthProvider id | |
body | OAuthProviderPublicDTO | Updated provider |