Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit a67a022

Browse files
authored
[ACS-5946] aps documentation enhancements (#1659)
* documentation formatting and fixes * documentation formatting and fixes * documentation formatting and fixes * documentation formatting and fixes * documentation formatting and fixes * documentation formatting and fixes
1 parent c2ff60e commit a67a022

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1641
-1960
lines changed

src/api/activiti-rest-api/README.md

Lines changed: 51 additions & 414 deletions
Large diffs are not rendered by default.

src/api/activiti-rest-api/api/systemProperties.api.ts

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ import { BaseApi } from './base.api';
2222
import { throwIfNotDefined } from '../../../assert';
2323

2424
/**
25-
* SystemPropertiesApi service.
26-
* @module SystempropertiesApi
27-
*/
25+
* SystemPropertiesApi service.
26+
* @module SystemPropertiesApi
27+
*/
2828
export class SystemPropertiesApi extends BaseApi {
2929
/**
30-
* Get global date format
31-
*
32-
* @param tenantId tenantId
33-
* @return Promise<GlobalDateFormatRepresentation>
34-
*/
30+
* Get global date format
31+
*
32+
* @param tenantId tenantId
33+
* @return Promise<GlobalDateFormatRepresentation>
34+
*/
3535
getGlobalDateFormat(tenantId: number): Promise<GlobalDateFormatRepresentation> {
3636
throwIfNotDefined(tenantId, 'tenantId');
3737

@@ -47,11 +47,11 @@ export class SystemPropertiesApi extends BaseApi {
4747
}
4848

4949
/**
50-
* Get password validation constraints
51-
*
52-
* @param tenantId tenantId
53-
* @return Promise<PasswordValidationConstraints>
54-
*/
50+
* Get password validation constraints
51+
*
52+
* @param tenantId tenantId
53+
* @return Promise<PasswordValidationConstraints>
54+
*/
5555
getPasswordValidationConstraints(tenantId: number): Promise<PasswordValidationConstraints> {
5656
throwIfNotDefined(tenantId, 'tenantId');
5757

@@ -67,12 +67,12 @@ export class SystemPropertiesApi extends BaseApi {
6767
}
6868

6969
/**
70-
* Retrieve system properties
71-
*
72-
* Typical value is AllowInvolveByEmail
73-
*
74-
* @return Promise<SystemPropertiesRepresentation>
75-
*/
70+
* Retrieve system properties
71+
*
72+
* Typical value is AllowInvolveByEmail
73+
*
74+
* @return Promise<SystemPropertiesRepresentation>
75+
*/
7676
getProperties(): Promise<SystemPropertiesRepresentation> {
7777
return this.get({
7878
path: '/api/enterprise/system/properties',
@@ -81,11 +81,11 @@ export class SystemPropertiesApi extends BaseApi {
8181
}
8282

8383
/**
84-
* Get involved users who can edit forms
85-
*
86-
* @param tenantId tenantId
87-
* @return Promise<boolean>
88-
*/
84+
* Get involved users who can edit forms
85+
*
86+
* @param tenantId tenantId
87+
* @return Promise<boolean>
88+
*/
8989
involvedUsersCanEditForms(tenantId: number): Promise<boolean> {
9090
throwIfNotDefined(tenantId, 'tenantId');
9191

@@ -98,5 +98,4 @@ export class SystemPropertiesApi extends BaseApi {
9898
pathParams
9999
});
100100
}
101-
102101
}

src/api/activiti-rest-api/docs/AboutApi.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,29 @@
22

33
All URIs are relative to */activiti-app/api*
44

5-
| Method | HTTP request | Description |
6-
|------------------------------------------------|---------------------------------|-----------------------------|
7-
| [**getAppVersion**](AboutApi.md#getAppVersion) | **GET** /enterprise/app-version | Get server type and version |
5+
| Method | HTTP request | Description |
6+
|---------------------------------|---------------------------------|-----------------------------|
7+
| [getAppVersion](#getAppVersion) | **GET** /enterprise/app-version | Get server type and version |
88

99

10-
<a name="getAppVersion"></a>
11-
# **getAppVersion**
12-
> { [key: string]: string; } getAppVersion()
10+
# getAppVersion
1311

1412
Get server type and version
1513

16-
Provides information about the running Alfresco Process Services Suite. The response payload object has the properties type, majorVersion, minorVersion, revisionVersion and edition.
14+
Provides information about the running Alfresco Process Services Suite.
15+
The response payload object has the properties type, majorVersion, minorVersion, revisionVersion and edition.
16+
17+
**Return type**: **Map<string, string>**
1718

1819
**Example**
1920

2021
```javascript
21-
import AboutApi from 'AboutApi';
22-
import { AlfrescoApi } from '@alfresco/js-api';
22+
import { AlfrescoApi, AboutApi } from '@alfresco/js-api';
2323

24-
const alfrescoApi = new AlfrescoApi({
25-
hostEcm: 'http://127.0.0.1:8080'
26-
});
27-
28-
const aboutApi = new AboutApi(this.alfrescoApi);
24+
const alfrescoApi = new AlfrescoApi(/*..*/);
25+
const aboutApi = new AboutApi(alfrescoApi);
2926

3027
aboutApi.getAppVersion().then((data) => {
3128
console.log('API called successfully. Returned data: ' + data);
32-
}, (error) => {
33-
console.error(error);
3429
});
35-
3630
```
37-
38-
39-
**Return type**: **Map<string, string>**
40-
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# AccountIntegrationApi
2+
3+
All URIs are relative to */activiti-app/api*
4+
5+
| Method | HTTP request | Description |
6+
|-----------------------------|-----------------------------------------|---------------------------------------|
7+
| [getAccounts](#getAccounts) | **GET** /enterprise/account/integration | Retrieve external account information |
8+
9+
# **getAccounts**
10+
11+
Retrieve external account information
12+
13+
Accounts are used to integrate with third party apps and clients
14+
15+
**Return type**: [ResultListDataRepresentationAccountRepresentation](#ResultListDataRepresentationAccountRepresentation)
16+
17+
**Example**
18+
19+
```javascript
20+
import { AlfrescoApi, AccountIntegrationApi } from '@alfresco/js-api';
21+
22+
const alfrescoApi = new AlfrescoApi(/*..*/);
23+
const accountIntegrationApi = new AccountIntegrationApi(alfrescoApi);
24+
25+
accountIntegrationApi.getAccounts().then((data) => {
26+
console.log('API called successfully. Returned data: ' + data);
27+
});
28+
```
29+
30+
# Models
31+
32+
## ResultListDataRepresentationAccountRepresentation
33+
34+
**Properties**
35+
36+
| Name | Type |
37+
|-------|---------------------------------------------------|
38+
| data | [AccountRepresentation[]](#AccountRepresentation) |
39+
| size | number |
40+
| start | number |
41+
| total | number |
42+
43+
44+
## AccountRepresentation
45+
46+
**Properties**
47+
48+
| Name | Type |
49+
|------------------|---------|
50+
| authorizationUrl | string |
51+
| authorized | boolean |
52+
| metaDataAllowed | boolean |
53+
| name | string |
54+
| serviceId | string |
55+
56+

src/api/activiti-rest-api/docs/AccountRepresentation.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/api/activiti-rest-api/docs/AccountintegrationApi.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)