|
2 | 2 |
|
3 | 3 | All URIs are relative to *https://localhost/alfresco/api/-default-/public/alfresco/versions/1* |
4 | 4 |
|
5 | | -Method | HTTP request | Description |
6 | | -------------- | ------------- | ------------- |
7 | | -[**createTagForNode**](TagsApi.md#createTagForNode) | **POST** /nodes/{nodeId}/tags | Create a tag for a node |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- |--------------------------------------| ------------- |
| 7 | +[**createTagForNode**](TagsApi.md#createTagForNode) | **POST** /nodes/{nodeId}/tags | Create a tag for a node |
8 | 8 | [**deleteTagFromNode**](TagsApi.md#deleteTagFromNode) | **DELETE** /nodes/{nodeId}/tags/{tagId} | Delete a tag from a node |
9 | | -[**getTag**](TagsApi.md#getTag) | **GET** /tags/{tagId} | Get a tag |
10 | | -[**listTags**](TagsApi.md#listTags) | **GET** /tags | List tags |
11 | | -[**listTagsForNode**](TagsApi.md#listTagsForNode) | **GET** /nodes/{nodeId}/tags | List tags for a node |
12 | | -[**updateTag**](TagsApi.md#updateTag) | **PUT** /tags/{tagId} | Update a tag |
| 9 | +[**getTag**](TagsApi.md#getTag) | **GET** /tags/{tagId} | Get a tag |
| 10 | +[**listTags**](TagsApi.md#listTags) | **GET** /tags | List tags |
| 11 | +[**listTagsForNode**](TagsApi.md#listTagsForNode) | **GET** /nodes/{nodeId}/tags | List tags for a node |
| 12 | +[**updateTag**](TagsApi.md#updateTag) | **PUT** /tags/{tagId} | Update a tag |
| 13 | +[**createTags**](TagsApi.md#createTags) | **POST** /tags | Create list of tags |
13 | 14 |
|
14 | 15 |
|
15 | 16 | <a name="createTagForNode"></a> |
@@ -234,6 +235,7 @@ List tags |
234 | 235 | Gets a list of tags in this repository. |
235 | 236 |
|
236 | 237 | You can use the **include** parameter to return additional **values** information. |
| 238 | +You can also use **name** parameter to return tags only for specified name. |
237 | 239 |
|
238 | 240 |
|
239 | 241 | ### Example |
@@ -447,3 +449,38 @@ parameter are returned in addition to those specified in the **fields** paramete |
447 | 449 |
|
448 | 450 | [**TagEntry**](TagEntry.md) |
449 | 451 |
|
| 452 | +<a name="createTags"></a> |
| 453 | +## createTags |
| 454 | +> TagEntry[] createTags(tags: TagBody[]) |
| 455 | +
|
| 456 | +Create specified by **tags** list of tags. |
| 457 | + |
| 458 | +### Example |
| 459 | + |
| 460 | +```javascript |
| 461 | +import { AlfrescoApi, TagsApi} from '@alfresco/js-api'; |
| 462 | + |
| 463 | +const alfrescoApi = new AlfrescoApi({ |
| 464 | + hostEcm: 'http://127.0.0.1:8080' |
| 465 | +}); |
| 466 | + |
| 467 | +const tagsApi = new TagsApi(alfrescoApi); |
| 468 | + |
| 469 | +tagsApi.createTags(tags).then((data) => { |
| 470 | + console.log('API called successfully. Returned data: ' + data); |
| 471 | +}, function(error) { |
| 472 | + console.error(error); |
| 473 | +}); |
| 474 | +``` |
| 475 | + |
| 476 | +### Parameters |
| 477 | + |
| 478 | +Name | Type | Description | Notes |
| 479 | +------------- |-----------------------------|-------------------------| ------------- |
| 480 | + **tags** | [**TagBody[]**](TagBody.md) | List of tags to create. | |
| 481 | + |
| 482 | + |
| 483 | +### Return type |
| 484 | + |
| 485 | +[**TagEntry[]**](TagEntry.md) |
| 486 | + |
0 commit comments