mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 11:15:54 +02:00
chore(server): openapi generation for Duplicate controller (#9560)
This commit is contained in:
parent
d61418886f
commit
2689178a35
3
mobile/openapi/.openapi-generator/FILES
generated
3
mobile/openapi/.openapi-generator/FILES
generated
@ -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
BIN
mobile/openapi/README.md
generated
Binary file not shown.
BIN
mobile/openapi/doc/DuplicateApi.md
generated
Normal file
BIN
mobile/openapi/doc/DuplicateApi.md
generated
Normal file
Binary file not shown.
BIN
mobile/openapi/lib/api.dart
generated
BIN
mobile/openapi/lib/api.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/api/duplicate_api.dart
generated
Normal file
BIN
mobile/openapi/lib/api/duplicate_api.dart
generated
Normal file
Binary file not shown.
BIN
mobile/openapi/test/duplicate_api_test.dart
generated
Normal file
BIN
mobile/openapi/test/duplicate_api_test.dart
generated
Normal file
Binary file not shown.
@ -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",
|
||||
|
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user