Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 2.18 KB

EndpointsApi.md

File metadata and controls

80 lines (54 loc) · 2.18 KB

EndpointsApi

All URIs are relative to https://adfdev.envalfresco.com/activiti-app/api

Method HTTP request Description
getEndpointConfiguration GET /enterprise/editor/endpoints/{endpointConfigurationId} Get an endpoint configuration
getEndpointConfigurations GET /enterprise/editor/endpoints List endpoint configurations

getEndpointConfiguration

EndpointConfigurationRepresentation getEndpointConfiguration(endpointConfigurationId)

Get an endpoint configuration

Example

import EndpointsApi from 'EndpointsApi';
import { AlfrescoApi } from 'alfresco-js-api';

this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
    hostEcm: 'http://127.0.0.1:8080'
});

let endpointsApi = new EndpointsApi(this.alfrescoApi);


endpointsApi.getEndpointConfiguration(endpointConfigurationId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
endpointConfigurationId number endpointConfigurationId

Return type

EndpointConfigurationRepresentation

getEndpointConfigurations

EndpointConfigurationRepresentation getEndpointConfigurations()

List endpoint configurations

Example

import EndpointsApi from 'EndpointsApi';
import { AlfrescoApi } from 'alfresco-js-api';

this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
    hostEcm: 'http://127.0.0.1:8080'
});

let endpointsApi = new EndpointsApi(this.alfrescoApi);

endpointsApi.getEndpointConfigurations().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

EndpointConfigurationRepresentation