2022-07-13 14:23:48 +02:00
# openapi.api.AlbumApi
## Load the API package
```dart
import 'package:openapi/api.dart';
```
All URIs are relative to */api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**addAssetsToAlbum** ](AlbumApi.md#addassetstoalbum ) | **PUT** /album/{albumId}/assets |
[**addUsersToAlbum** ](AlbumApi.md#adduserstoalbum ) | **PUT** /album/{albumId}/users |
[**createAlbum** ](AlbumApi.md#createalbum ) | **POST** /album |
2023-01-09 22:16:08 +02:00
[**createAlbumSharedLink** ](AlbumApi.md#createalbumsharedlink ) | **POST** /album/create-shared-link |
2022-07-13 14:23:48 +02:00
[**deleteAlbum** ](AlbumApi.md#deletealbum ) | **DELETE** /album/{albumId} |
2022-10-30 19:38:04 +02:00
[**downloadArchive** ](AlbumApi.md#downloadarchive ) | **GET** /album/{albumId}/download |
2022-09-07 22:16:18 +02:00
[**getAlbumCountByUserId** ](AlbumApi.md#getalbumcountbyuserid ) | **GET** /album/count-by-user-id |
2022-07-13 14:23:48 +02:00
[**getAlbumInfo** ](AlbumApi.md#getalbuminfo ) | **GET** /album/{albumId} |
[**getAllAlbums** ](AlbumApi.md#getallalbums ) | **GET** /album |
[**removeAssetFromAlbum** ](AlbumApi.md#removeassetfromalbum ) | **DELETE** /album/{albumId}/assets |
[**removeUserFromAlbum** ](AlbumApi.md#removeuserfromalbum ) | **DELETE** /album/{albumId}/user/{userId} |
[**updateAlbumInfo** ](AlbumApi.md#updatealbuminfo ) | **PATCH** /album/{albumId} |
# **addAssetsToAlbum**
2022-10-28 21:54:09 +02:00
> AddAssetsResponseDto addAssetsToAlbum(albumId, addAssetsDto)
2022-07-13 14:23:48 +02:00
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
final addAssetsDto = AddAssetsDto(); // AddAssetsDto |
try {
final result = api_instance.addAssetsToAlbum(albumId, addAssetsDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->addAssetsToAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
**addAssetsDto** | [**AddAssetsDto** ](AddAssetsDto.md )| |
### Return type
2022-10-28 21:54:09 +02:00
[**AddAssetsResponseDto** ](AddAssetsResponseDto.md )
2022-07-13 14:23:48 +02:00
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **addUsersToAlbum**
> AlbumResponseDto addUsersToAlbum(albumId, addUsersDto)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
final addUsersDto = AddUsersDto(); // AddUsersDto |
try {
final result = api_instance.addUsersToAlbum(albumId, addUsersDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->addUsersToAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
**addUsersDto** | [**AddUsersDto** ](AddUsersDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **createAlbum**
> AlbumResponseDto createAlbum(createAlbumDto)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final createAlbumDto = CreateAlbumDto(); // CreateAlbumDto |
try {
final result = api_instance.createAlbum(createAlbumDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->createAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createAlbumDto** | [**CreateAlbumDto** ](CreateAlbumDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2023-01-09 22:16:08 +02:00
# **createAlbumSharedLink**
> SharedLinkResponseDto createAlbumSharedLink(createAlbumShareLinkDto)
2023-01-15 07:49:47 +02:00
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final createAlbumShareLinkDto = CreateAlbumShareLinkDto(); // CreateAlbumShareLinkDto |
try {
final result = api_instance.createAlbumSharedLink(createAlbumShareLinkDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->createAlbumSharedLink: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createAlbumShareLinkDto** | [**CreateAlbumShareLinkDto** ](CreateAlbumShareLinkDto.md )| |
### Return type
[**SharedLinkResponseDto** ](SharedLinkResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2022-07-13 14:23:48 +02:00
# **deleteAlbum**
> deleteAlbum(albumId)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
try {
api_instance.deleteAlbum(albumId);
} catch (e) {
print('Exception when calling AlbumApi->deleteAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
### Return type
void (empty response body)
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2022-09-07 22:16:18 +02:00
2022-10-30 19:38:04 +02:00
# **downloadArchive**
2022-11-15 17:51:56 +02:00
> Object downloadArchive(albumId, skip)
2022-10-30 19:38:04 +02:00
2023-01-15 07:49:47 +02:00
2022-10-30 19:38:04 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
2022-11-15 17:51:56 +02:00
final skip = 8.14; // num |
2022-10-30 19:38:04 +02:00
try {
2022-11-15 17:51:56 +02:00
final result = api_instance.downloadArchive(albumId, skip);
2022-10-30 19:38:04 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->downloadArchive: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
2022-11-15 17:51:56 +02:00
**skip** | **num** | | [optional]
2022-10-30 19:38:04 +02:00
### Return type
[**Object** ](Object.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2022-09-07 22:16:18 +02:00
# **getAlbumCountByUserId**
> AlbumCountResponseDto getAlbumCountByUserId()
2023-01-15 07:49:47 +02:00
2022-09-07 22:16:18 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
try {
final result = api_instance.getAlbumCountByUserId();
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAlbumCountByUserId: $e\n');
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**AlbumCountResponseDto** ](AlbumCountResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
2022-07-13 14:23:48 +02:00
# **getAlbumInfo**
> AlbumResponseDto getAlbumInfo(albumId)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
try {
final result = api_instance.getAlbumInfo(albumId);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAlbumInfo: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getAllAlbums**
2022-09-05 15:50:20 +02:00
> List<AlbumResponseDto> getAllAlbums(shared, assetId)
2022-07-13 14:23:48 +02:00
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final shared = true; // bool |
2022-09-05 15:50:20 +02:00
final assetId = assetId_example; // String | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
2022-07-13 14:23:48 +02:00
try {
2022-09-05 15:50:20 +02:00
final result = api_instance.getAllAlbums(shared, assetId);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAllAlbums: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**shared** | **bool** | | [optional]
2022-09-05 15:50:20 +02:00
**assetId** | **String** | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums | [optional]
2022-07-13 14:23:48 +02:00
### Return type
[**List<AlbumResponseDto>** ](AlbumResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **removeAssetFromAlbum**
2022-07-24 06:23:14 +02:00
> AlbumResponseDto removeAssetFromAlbum(albumId, removeAssetsDto)
2022-07-13 14:23:48 +02:00
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
final removeAssetsDto = RemoveAssetsDto(); // RemoveAssetsDto |
try {
2022-07-24 06:23:14 +02:00
final result = api_instance.removeAssetFromAlbum(albumId, removeAssetsDto);
print(result);
2022-07-13 14:23:48 +02:00
} catch (e) {
print('Exception when calling AlbumApi->removeAssetFromAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
**removeAssetsDto** | [**RemoveAssetsDto** ](RemoveAssetsDto.md )| |
### Return type
2022-07-24 06:23:14 +02:00
[**AlbumResponseDto** ](AlbumResponseDto.md )
2022-07-13 14:23:48 +02:00
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
2022-07-24 06:23:14 +02:00
- **Accept**: application/json
2022-07-13 14:23:48 +02:00
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **removeUserFromAlbum**
> removeUserFromAlbum(albumId, userId)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
final userId = userId_example; // String |
try {
api_instance.removeUserFromAlbum(albumId, userId);
} catch (e) {
print('Exception when calling AlbumApi->removeUserFromAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
**userId** | **String** | |
### Return type
void (empty response body)
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **updateAlbumInfo**
> AlbumResponseDto updateAlbumInfo(albumId, updateAlbumDto)
2023-01-15 07:49:47 +02:00
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final albumId = albumId_example; // String |
final updateAlbumDto = UpdateAlbumDto(); // UpdateAlbumDto |
try {
final result = api_instance.updateAlbumInfo(albumId, updateAlbumDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->updateAlbumInfo: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String** | |
**updateAlbumDto** | [**UpdateAlbumDto** ](UpdateAlbumDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
[bearer ](../README.md#bearer )
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)