1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

chore(server): update openapi

This commit is contained in:
Alex Tran
2023-07-06 16:56:02 -05:00
parent 3cc77d945b
commit 852ef3cd1b
13 changed files with 43 additions and 94 deletions

View File

@@ -768,7 +768,7 @@ This endpoint does not need any parameter.
[[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)
# **getAssetThumbnail**
> MultipartFile getAssetThumbnail(id, format, key)
> getAssetThumbnail(id, format, key)
@@ -796,8 +796,7 @@ final format = ; // ThumbnailFormat |
final key = key_example; // String |
try {
final result = api_instance.getAssetThumbnail(id, format, key);
print(result);
api_instance.getAssetThumbnail(id, format, key);
} catch (e) {
print('Exception when calling AssetApi->getAssetThumbnail: $e\n');
}
@@ -813,7 +812,7 @@ Name | Type | Description | Notes
### Return type
[**MultipartFile**](MultipartFile.md)
void (empty response body)
### Authorization
@@ -822,7 +821,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: image/jpeg, image/webp
- **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)
@@ -1273,7 +1272,7 @@ Name | Type | Description | Notes
[[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)
# **serveFile**
> MultipartFile serveFile(id, isThumb, isWeb, key)
> serveFile(id, isThumb, isWeb, key)
@@ -1302,8 +1301,7 @@ final isWeb = true; // bool |
final key = key_example; // String |
try {
final result = api_instance.serveFile(id, isThumb, isWeb, key);
print(result);
api_instance.serveFile(id, isThumb, isWeb, key);
} catch (e) {
print('Exception when calling AssetApi->serveFile: $e\n');
}
@@ -1320,7 +1318,7 @@ Name | Type | Description | Notes
### Return type
[**MultipartFile**](MultipartFile.md)
void (empty response body)
### Authorization
@@ -1329,7 +1327,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/octet-stream
- **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)

View File

@@ -178,7 +178,7 @@ Name | Type | Description | Notes
[[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)
# **getPersonThumbnail**
> MultipartFile getPersonThumbnail(id)
> getPersonThumbnail(id)
@@ -204,8 +204,7 @@ final api_instance = PersonApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
final result = api_instance.getPersonThumbnail(id);
print(result);
api_instance.getPersonThumbnail(id);
} catch (e) {
print('Exception when calling PersonApi->getPersonThumbnail: $e\n');
}
@@ -219,7 +218,7 @@ Name | Type | Description | Notes
### Return type
[**MultipartFile**](MultipartFile.md)
void (empty response body)
### Authorization
@@ -228,7 +227,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: image/jpeg
- **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)

View File

@@ -772,19 +772,11 @@ class AssetApi {
/// * [ThumbnailFormat] format:
///
/// * [String] key:
Future<MultipartFile?> getAssetThumbnail(String id, { ThumbnailFormat? format, String? key, }) async {
Future<void> getAssetThumbnail(String id, { ThumbnailFormat? format, String? key, }) async {
final response = await getAssetThumbnailWithHttpInfo(id, format: format, key: key, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
}
return null;
}
/// Performs an HTTP 'GET /asset/curated-locations' operation and returns the [Response].
@@ -1284,19 +1276,11 @@ class AssetApi {
/// * [bool] isWeb:
///
/// * [String] key:
Future<MultipartFile?> serveFile(String id, { bool? isThumb, bool? isWeb, String? key, }) async {
Future<void> serveFile(String id, { bool? isThumb, bool? isWeb, String? key, }) async {
final response = await serveFileWithHttpInfo(id, isThumb: isThumb, isWeb: isWeb, key: key, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
}
return null;
}
/// Update an asset

View File

@@ -192,19 +192,11 @@ class PersonApi {
/// Parameters:
///
/// * [String] id (required):
Future<MultipartFile?> getPersonThumbnail(String id,) async {
Future<void> getPersonThumbnail(String id,) async {
final response = await getPersonThumbnailWithHttpInfo(id,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
}
return null;
}
/// Performs an HTTP 'PUT /person/{id}' operation and returns the [Response].

View File

@@ -92,7 +92,7 @@ void main() {
// TODO
});
//Future<MultipartFile> getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async
//Future getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async
test('test getAssetThumbnail', () async {
// TODO
});
@@ -139,7 +139,7 @@ void main() {
// TODO
});
//Future<MultipartFile> serveFile(String id, { bool isThumb, bool isWeb, String key }) async
//Future serveFile(String id, { bool isThumb, bool isWeb, String key }) async
test('test serveFile', () async {
// TODO
});

View File

@@ -32,7 +32,7 @@ void main() {
// TODO
});
//Future<MultipartFile> getPersonThumbnail(String id) async
//Future getPersonThumbnail(String id) async
test('test getPersonThumbnail', () async {
// TODO
});