mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-29 18:05:14 -04:00 
			
		
		
		
	* remove external path * open-api * make sql * move library settings to admin panel * Add documentation * show external libraries only * fix library list * make user library settings look good * fix test * fix tests * fix tests * can pick user for library * fix tests * fix e2e * chore: make sql * Use unauth exception * delete user library list * cleanup * fix e2e * fix await lint * chore: remove unused code * chore: cleanup * revert docs * fix: is admin stuff * table alignment --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
		
			
				
	
	
		
			521 lines
		
	
	
		
			18 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
		
			Generated
		
	
	
			
		
		
	
	
			521 lines
		
	
	
		
			18 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
		
			Generated
		
	
	
| # openapi.api.LibraryApi
 | |
| 
 | |
| ## Load the API package
 | |
| ```dart
 | |
| import 'package:openapi/api.dart';
 | |
| ```
 | |
| 
 | |
| All URIs are relative to */api*
 | |
| 
 | |
| Method | HTTP request | Description
 | |
| ------------- | ------------- | -------------
 | |
| [**createLibrary**](LibraryApi.md#createlibrary) | **POST** /library | 
 | |
| [**deleteLibrary**](LibraryApi.md#deletelibrary) | **DELETE** /library/{id} | 
 | |
| [**getAllLibraries**](LibraryApi.md#getalllibraries) | **GET** /library | 
 | |
| [**getLibrary**](LibraryApi.md#getlibrary) | **GET** /library/{id} | 
 | |
| [**getLibraryStatistics**](LibraryApi.md#getlibrarystatistics) | **GET** /library/{id}/statistics | 
 | |
| [**removeOfflineFiles**](LibraryApi.md#removeofflinefiles) | **POST** /library/{id}/removeOffline | 
 | |
| [**scanLibrary**](LibraryApi.md#scanlibrary) | **POST** /library/{id}/scan | 
 | |
| [**updateLibrary**](LibraryApi.md#updatelibrary) | **PUT** /library/{id} | 
 | |
| [**validate**](LibraryApi.md#validate) | **POST** /library/{id}/validate | 
 | |
| 
 | |
| 
 | |
| # **createLibrary**
 | |
| > LibraryResponseDto createLibrary(createLibraryDto)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final createLibraryDto = CreateLibraryDto(); // CreateLibraryDto | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.createLibrary(createLibraryDto);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->createLibrary: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **createLibraryDto** | [**CreateLibraryDto**](CreateLibraryDto.md)|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**LibraryResponseDto**](LibraryResponseDto.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)
 | |
| 
 | |
| # **deleteLibrary**
 | |
| > deleteLibrary(id)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| 
 | |
| try {
 | |
|     api_instance.deleteLibrary(id);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->deleteLibrary: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| void (empty response body)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [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)
 | |
| 
 | |
| # **getAllLibraries**
 | |
| > List<LibraryResponseDto> getAllLibraries(type)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final type = ; // LibraryType | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.getAllLibraries(type);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->getAllLibraries: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **type** | [**LibraryType**](.md)|  | [optional] 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**List<LibraryResponseDto>**](LibraryResponseDto.md)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [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)
 | |
| 
 | |
| # **getLibrary**
 | |
| > LibraryResponseDto getLibrary(id)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.getLibrary(id);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->getLibrary: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**LibraryResponseDto**](LibraryResponseDto.md)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [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)
 | |
| 
 | |
| # **getLibraryStatistics**
 | |
| > LibraryStatsResponseDto getLibraryStatistics(id)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.getLibraryStatistics(id);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->getLibraryStatistics: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**LibraryStatsResponseDto**](LibraryStatsResponseDto.md)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [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)
 | |
| 
 | |
| # **removeOfflineFiles**
 | |
| > removeOfflineFiles(id)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| 
 | |
| try {
 | |
|     api_instance.removeOfflineFiles(id);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->removeOfflineFiles: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| void (empty response body)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [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)
 | |
| 
 | |
| # **scanLibrary**
 | |
| > scanLibrary(id, scanLibraryDto)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| final scanLibraryDto = ScanLibraryDto(); // ScanLibraryDto | 
 | |
| 
 | |
| try {
 | |
|     api_instance.scanLibrary(id, scanLibraryDto);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->scanLibrary: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
|  **scanLibraryDto** | [**ScanLibraryDto**](ScanLibraryDto.md)|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| void (empty response body)
 | |
| 
 | |
| ### Authorization
 | |
| 
 | |
| [cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
 | |
| 
 | |
| ### HTTP request headers
 | |
| 
 | |
|  - **Content-Type**: application/json
 | |
|  - **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)
 | |
| 
 | |
| # **updateLibrary**
 | |
| > LibraryResponseDto updateLibrary(id, updateLibraryDto)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| final updateLibraryDto = UpdateLibraryDto(); // UpdateLibraryDto | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.updateLibrary(id, updateLibraryDto);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->updateLibrary: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
|  **updateLibraryDto** | [**UpdateLibraryDto**](UpdateLibraryDto.md)|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**LibraryResponseDto**](LibraryResponseDto.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)
 | |
| 
 | |
| # **validate**
 | |
| > ValidateLibraryResponseDto validate(id, validateLibraryDto)
 | |
| 
 | |
| 
 | |
| 
 | |
| ### 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 = LibraryApi();
 | |
| final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | 
 | |
| final validateLibraryDto = ValidateLibraryDto(); // ValidateLibraryDto | 
 | |
| 
 | |
| try {
 | |
|     final result = api_instance.validate(id, validateLibraryDto);
 | |
|     print(result);
 | |
| } catch (e) {
 | |
|     print('Exception when calling LibraryApi->validate: $e\n');
 | |
| }
 | |
| ```
 | |
| 
 | |
| ### Parameters
 | |
| 
 | |
| Name | Type | Description  | Notes
 | |
| ------------- | ------------- | ------------- | -------------
 | |
|  **id** | **String**|  | 
 | |
|  **validateLibraryDto** | [**ValidateLibraryDto**](ValidateLibraryDto.md)|  | 
 | |
| 
 | |
| ### Return type
 | |
| 
 | |
| [**ValidateLibraryResponseDto**](ValidateLibraryResponseDto.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)
 | |
| 
 |