|
|
|
|
@ -39,21 +39,19 @@ Method | HTTP request | Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final addAssetsDto = AddAssetsDto(); // AddAssetsDto |
|
|
|
|
|
@ -80,7 +78,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -99,16 +97,16 @@ Check duplicated asset before uploading - for Web upload used
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final checkDuplicateAssetDto = CheckDuplicateAssetDto(); // CheckDuplicateAssetDto |
|
|
|
|
|
@ -135,7 +133,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -154,16 +152,16 @@ Checks if multiple assets exist on the server and returns all existing - used by
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final checkExistingAssetsDto = CheckExistingAssetsDto(); // CheckExistingAssetsDto |
|
|
|
|
|
@ -188,7 +186,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -202,21 +200,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final createAssetsShareLinkDto = CreateAssetsShareLinkDto(); // CreateAssetsShareLinkDto |
|
|
|
|
|
@ -241,7 +237,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -255,21 +251,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final deleteAssetDto = DeleteAssetDto(); // DeleteAssetDto |
|
|
|
|
|
@ -294,7 +288,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -308,21 +302,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -349,7 +341,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -363,21 +355,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final downloadFilesDto = DownloadFilesDto(); // DownloadFilesDto |
|
|
|
|
|
@ -404,7 +394,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -423,16 +413,16 @@ Current this is not used in any UI element
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final name = name_example; // String |
|
|
|
|
|
@ -461,7 +451,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -480,16 +470,16 @@ Get all AssetEntity belong to the user
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final isFavorite = true; // bool |
|
|
|
|
|
@ -518,7 +508,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -537,16 +527,16 @@ Get a single asset's information
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -573,7 +563,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -587,21 +577,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final getAssetByTimeBucketDto = GetAssetByTimeBucketDto(); // GetAssetByTimeBucketDto |
|
|
|
|
|
@ -626,7 +614,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -640,21 +628,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final getAssetCountByTimeBucketDto = GetAssetCountByTimeBucketDto(); // GetAssetCountByTimeBucketDto |
|
|
|
|
|
@ -679,7 +665,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -693,21 +679,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
|
|
|
|
|
@ -728,7 +712,7 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -742,21 +726,19 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
|
|
|
|
|
@ -777,7 +759,7 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -791,21 +773,19 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -834,7 +814,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -848,21 +828,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
|
|
|
|
|
@ -883,7 +861,7 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -897,21 +875,19 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
|
|
|
|
|
@ -932,7 +908,7 @@ This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -951,16 +927,16 @@ Get all asset of a device that are in the database, ID only.
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -985,7 +961,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -999,21 +975,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final removeAssetsDto = RemoveAssetsDto(); // RemoveAssetsDto |
|
|
|
|
|
@ -1040,7 +1014,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -1054,21 +1028,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final searchAssetDto = SearchAssetDto(); // SearchAssetDto |
|
|
|
|
|
@ -1093,7 +1065,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -1107,21 +1079,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -1152,7 +1122,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -1171,16 +1141,16 @@ Update an asset
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
|
|
|
@ -1207,7 +1177,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
@ -1221,21 +1191,19 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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 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);
|
|
|
|
|
// 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';
|
|
|
|
|
|
|
|
|
|
final api_instance = AssetApi();
|
|
|
|
|
final assetType = ; // AssetTypeEnum |
|
|
|
|
|
@ -1282,7 +1250,7 @@ Name | Type | Description | Notes
|
|
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
|
|
[bearer](../README.md#bearer), [cookie](../README.md#cookie)
|
|
|
|
|
[cookie](../README.md#cookie), [bearer](../README.md#bearer)
|
|
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
|
|
|