1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 11:24:37 +02:00

chore(server): openapi generation for Duplicate controller (#9560)

This commit is contained in:
Alex 2024-05-17 12:05:23 -05:00 committed by GitHub
parent d61418886f
commit 2689178a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 48 additions and 0 deletions

View File

@ -68,6 +68,7 @@ doc/DownloadApi.md
doc/DownloadArchiveInfo.md
doc/DownloadInfoDto.md
doc/DownloadResponseDto.md
doc/DuplicateApi.md
doc/DuplicateDetectionConfig.md
doc/EntityType.md
doc/ExifResponseDto.md
@ -224,6 +225,7 @@ lib/api/asset_api.dart
lib/api/audit_api.dart
lib/api/authentication_api.dart
lib/api/download_api.dart
lib/api/duplicate_api.dart
lib/api/face_api.dart
lib/api/file_report_api.dart
lib/api/job_api.dart
@ -503,6 +505,7 @@ test/download_api_test.dart
test/download_archive_info_test.dart
test/download_info_dto_test.dart
test/download_response_dto_test.dart
test/duplicate_api_test.dart
test/duplicate_detection_config_test.dart
test/entity_type_test.dart
test/exif_response_dto_test.dart

BIN
mobile/openapi/README.md generated

Binary file not shown.

BIN
mobile/openapi/doc/DuplicateApi.md generated Normal file

Binary file not shown.

Binary file not shown.

BIN
mobile/openapi/lib/api/duplicate_api.dart generated Normal file

Binary file not shown.

Binary file not shown.

View File

@ -2221,6 +2221,41 @@
]
}
},
"/duplicates": {
"get": {
"operationId": "getAssetDuplicates",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/AssetResponseDto"
},
"type": "array"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"tags": [
"Duplicate"
]
}
},
"/face": {
"get": {
"operationId": "getFaces",

View File

@ -1695,6 +1695,14 @@ export function getDownloadInfo({ key, downloadInfoDto }: {
body: downloadInfoDto
})));
}
export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: AssetResponseDto[];
}>("/duplicates", {
...opts
}));
}
export function getFaces({ id }: {
id: string;
}, opts?: Oazapfts.RequestOpts) {

View File

@ -7,6 +7,7 @@ import { AssetController } from 'src/controllers/asset.controller';
import { AuditController } from 'src/controllers/audit.controller';
import { AuthController } from 'src/controllers/auth.controller';
import { DownloadController } from 'src/controllers/download.controller';
import { DuplicateController } from 'src/controllers/duplicate.controller';
import { FaceController } from 'src/controllers/face.controller';
import { ReportController } from 'src/controllers/file-report.controller';
import { JobController } from 'src/controllers/job.controller';
@ -37,6 +38,7 @@ export const controllers = [
AuditController,
AuthController,
DownloadController,
DuplicateController,
FaceController,
JobController,
LibraryController,