2023-06-21 03:08:43 +02:00
# openapi.api.SharedLinkApi
2023-01-09 22:16:08 +02:00
## Load the API package
```dart
import 'package:openapi/api.dart';
```
All URIs are relative to */api*
Method | HTTP request | Description
------------- | ------------- | -------------
2023-06-21 03:08:43 +02:00
[**addSharedLinkAssets** ](SharedLinkApi.md#addsharedlinkassets ) | **PUT** /shared-link/{id}/assets |
[**createSharedLink** ](SharedLinkApi.md#createsharedlink ) | **POST** /shared-link |
[**getAllSharedLinks** ](SharedLinkApi.md#getallsharedlinks ) | **GET** /shared-link |
[**getMySharedLink** ](SharedLinkApi.md#getmysharedlink ) | **GET** /shared-link/me |
[**getSharedLinkById** ](SharedLinkApi.md#getsharedlinkbyid ) | **GET** /shared-link/{id} |
[**removeSharedLink** ](SharedLinkApi.md#removesharedlink ) | **DELETE** /shared-link/{id} |
[**removeSharedLinkAssets** ](SharedLinkApi.md#removesharedlinkassets ) | **DELETE** /shared-link/{id}/assets |
[**updateSharedLink** ](SharedLinkApi.md#updatesharedlink ) | **PATCH** /shared-link/{id} |
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
# **addSharedLinkAssets**
> List<AssetIdsResponseDto> addSharedLinkAssets(id, assetIdsDto, key)
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
// 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 = SharedLinkApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final assetIdsDto = AssetIdsDto(); // AssetIdsDto |
final key = key_example; // String |
try {
final result = api_instance.addSharedLinkAssets(id, assetIdsDto, key);
print(result);
} catch (e) {
print('Exception when calling SharedLinkApi->addSharedLinkAssets: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String** | |
**assetIdsDto** | [**AssetIdsDto** ](AssetIdsDto.md )| |
**key** | **String** | | [optional]
### Return type
[**List<AssetIdsResponseDto>** ](AssetIdsResponseDto.md )
### Authorization
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [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)
# **createSharedLink**
> SharedLinkResponseDto createSharedLink(sharedLinkCreateDto)
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
// 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 = SharedLinkApi();
final sharedLinkCreateDto = SharedLinkCreateDto(); // SharedLinkCreateDto |
try {
final result = api_instance.createSharedLink(sharedLinkCreateDto);
print(result);
} catch (e) {
print('Exception when calling SharedLinkApi->createSharedLink: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sharedLinkCreateDto** | [**SharedLinkCreateDto** ](SharedLinkCreateDto.md )| |
### Return type
[**SharedLinkResponseDto** ](SharedLinkResponseDto.md )
### Authorization
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [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-06-02 04:09:57 +02:00
# **getAllSharedLinks**
> List<SharedLinkResponseDto> getAllSharedLinks()
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2023-02-24 18:01:10 +02:00
// 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);
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
final api_instance = SharedLinkApi();
2023-01-09 22:16:08 +02:00
try {
2023-06-02 04:09:57 +02:00
final result = api_instance.getAllSharedLinks();
2023-01-09 22:16:08 +02:00
print(result);
} catch (e) {
2023-06-21 03:08:43 +02:00
print('Exception when calling SharedLinkApi->getAllSharedLinks: $e\n');
2023-01-09 22:16:08 +02:00
}
```
### Parameters
2023-06-02 04:09:57 +02:00
This endpoint does not need any parameter.
2023-01-09 22:16:08 +02:00
### Return type
2023-06-02 04:09:57 +02:00
[**List<SharedLinkResponseDto>** ](SharedLinkResponseDto.md )
2023-01-09 22:16:08 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2023-01-09 22:16:08 +02:00
### HTTP request headers
2023-06-02 04:09:57 +02:00
- **Content-Type**: Not defined
2023-01-09 22:16:08 +02:00
- **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-06-02 04:09:57 +02:00
# **getMySharedLink**
> SharedLinkResponseDto getMySharedLink(key)
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2023-02-24 18:01:10 +02:00
// 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);
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
final api_instance = SharedLinkApi();
2023-06-02 04:09:57 +02:00
final key = key_example; // String |
2023-01-09 22:16:08 +02:00
try {
2023-06-02 04:09:57 +02:00
final result = api_instance.getMySharedLink(key);
2023-01-09 22:16:08 +02:00
print(result);
} catch (e) {
2023-06-21 03:08:43 +02:00
print('Exception when calling SharedLinkApi->getMySharedLink: $e\n');
2023-01-09 22:16:08 +02:00
}
```
### Parameters
2023-06-02 04:09:57 +02:00
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**key** | **String** | | [optional]
2023-01-09 22:16:08 +02:00
### Return type
2023-06-02 04:09:57 +02:00
[**SharedLinkResponseDto** ](SharedLinkResponseDto.md )
2023-01-09 22:16:08 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2023-01-09 22:16:08 +02:00
### 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)
2023-06-02 04:09:57 +02:00
# **getSharedLinkById**
> SharedLinkResponseDto getSharedLinkById(id)
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2023-02-24 18:01:10 +02:00
// 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);
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
final api_instance = SharedLinkApi();
2023-06-02 04:09:57 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-01-09 22:16:08 +02:00
try {
2023-06-02 04:09:57 +02:00
final result = api_instance.getSharedLinkById(id);
2023-01-09 22:16:08 +02:00
print(result);
} catch (e) {
2023-06-21 03:08:43 +02:00
print('Exception when calling SharedLinkApi->getSharedLinkById: $e\n');
2023-01-09 22:16:08 +02:00
}
```
### Parameters
2023-02-24 18:01:10 +02:00
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-06-02 04:09:57 +02:00
**id** | **String** | |
2023-01-09 22:16:08 +02:00
### Return type
[**SharedLinkResponseDto** ](SharedLinkResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2023-01-09 22:16:08 +02:00
### 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)
2023-06-02 04:09:57 +02:00
# **removeSharedLink**
> removeSharedLink(id)
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2023-02-24 18:01:10 +02:00
// 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);
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
final api_instance = SharedLinkApi();
2023-04-05 00:24:08 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-01-09 22:16:08 +02:00
try {
2023-06-02 04:09:57 +02:00
api_instance.removeSharedLink(id);
2023-01-09 22:16:08 +02:00
} catch (e) {
2023-06-21 03:08:43 +02:00
print('Exception when calling SharedLinkApi->removeSharedLink: $e\n');
2023-01-09 22:16:08 +02:00
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String** | |
### Return type
2023-06-02 04:09:57 +02:00
void (empty response body)
2023-01-09 22:16:08 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2023-01-09 22:16:08 +02:00
### HTTP request headers
- **Content-Type**: Not defined
2023-06-02 04:09:57 +02:00
- **Accept**: Not defined
2023-01-09 22:16:08 +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)
2023-06-21 03:08:43 +02:00
# **removeSharedLinkAssets**
> List<AssetIdsResponseDto> removeSharedLinkAssets(id, assetIdsDto, key)
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
// 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 = SharedLinkApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final assetIdsDto = AssetIdsDto(); // AssetIdsDto |
final key = key_example; // String |
try {
final result = api_instance.removeSharedLinkAssets(id, assetIdsDto, key);
print(result);
} catch (e) {
print('Exception when calling SharedLinkApi->removeSharedLinkAssets: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String** | |
**assetIdsDto** | [**AssetIdsDto** ](AssetIdsDto.md )| |
**key** | **String** | | [optional]
### Return type
[**List<AssetIdsResponseDto>** ](AssetIdsResponseDto.md )
### Authorization
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [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-06-02 04:09:57 +02:00
# **updateSharedLink**
2023-06-21 03:08:43 +02:00
> SharedLinkResponseDto updateSharedLink(id, sharedLinkEditDto)
2023-01-09 22:16:08 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2023-02-24 18:01:10 +02:00
// 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);
2023-01-09 22:16:08 +02:00
2023-06-21 03:08:43 +02:00
final api_instance = SharedLinkApi();
2023-04-05 00:24:08 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-06-21 03:08:43 +02:00
final sharedLinkEditDto = SharedLinkEditDto(); // SharedLinkEditDto |
2023-01-09 22:16:08 +02:00
try {
2023-06-21 03:08:43 +02:00
final result = api_instance.updateSharedLink(id, sharedLinkEditDto);
2023-06-02 04:09:57 +02:00
print(result);
2023-01-09 22:16:08 +02:00
} catch (e) {
2023-06-21 03:08:43 +02:00
print('Exception when calling SharedLinkApi->updateSharedLink: $e\n');
2023-01-09 22:16:08 +02:00
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String** | |
2023-06-21 03:08:43 +02:00
**sharedLinkEditDto** | [**SharedLinkEditDto** ](SharedLinkEditDto.md )| |
2023-01-09 22:16:08 +02:00
### Return type
2023-06-02 04:09:57 +02:00
[**SharedLinkResponseDto** ](SharedLinkResponseDto.md )
2023-01-09 22:16:08 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2023-01-09 22:16:08 +02:00
### HTTP request headers
2023-06-02 04:09:57 +02:00
- **Content-Type**: application/json
- **Accept**: application/json
2023-01-09 22:16:08 +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)