mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
chore(server): openapi generation for Duplicate controller (#9560)
This commit is contained in:
parent
d61418886f
commit
2689178a35
9 changed files with 48 additions and 0 deletions
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/DownloadArchiveInfo.md
|
||||||
doc/DownloadInfoDto.md
|
doc/DownloadInfoDto.md
|
||||||
doc/DownloadResponseDto.md
|
doc/DownloadResponseDto.md
|
||||||
|
doc/DuplicateApi.md
|
||||||
doc/DuplicateDetectionConfig.md
|
doc/DuplicateDetectionConfig.md
|
||||||
doc/EntityType.md
|
doc/EntityType.md
|
||||||
doc/ExifResponseDto.md
|
doc/ExifResponseDto.md
|
||||||
|
@ -224,6 +225,7 @@ lib/api/asset_api.dart
|
||||||
lib/api/audit_api.dart
|
lib/api/audit_api.dart
|
||||||
lib/api/authentication_api.dart
|
lib/api/authentication_api.dart
|
||||||
lib/api/download_api.dart
|
lib/api/download_api.dart
|
||||||
|
lib/api/duplicate_api.dart
|
||||||
lib/api/face_api.dart
|
lib/api/face_api.dart
|
||||||
lib/api/file_report_api.dart
|
lib/api/file_report_api.dart
|
||||||
lib/api/job_api.dart
|
lib/api/job_api.dart
|
||||||
|
@ -503,6 +505,7 @@ test/download_api_test.dart
|
||||||
test/download_archive_info_test.dart
|
test/download_archive_info_test.dart
|
||||||
test/download_info_dto_test.dart
|
test/download_info_dto_test.dart
|
||||||
test/download_response_dto_test.dart
|
test/download_response_dto_test.dart
|
||||||
|
test/duplicate_api_test.dart
|
||||||
test/duplicate_detection_config_test.dart
|
test/duplicate_detection_config_test.dart
|
||||||
test/entity_type_test.dart
|
test/entity_type_test.dart
|
||||||
test/exif_response_dto_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": {
|
"/face": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "getFaces",
|
"operationId": "getFaces",
|
||||||
|
|
|
@ -1695,6 +1695,14 @@ export function getDownloadInfo({ key, downloadInfoDto }: {
|
||||||
body: downloadInfoDto
|
body: downloadInfoDto
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {
|
||||||
|
return oazapfts.ok(oazapfts.fetchJson<{
|
||||||
|
status: 200;
|
||||||
|
data: AssetResponseDto[];
|
||||||
|
}>("/duplicates", {
|
||||||
|
...opts
|
||||||
|
}));
|
||||||
|
}
|
||||||
export function getFaces({ id }: {
|
export function getFaces({ id }: {
|
||||||
id: string;
|
id: string;
|
||||||
}, opts?: Oazapfts.RequestOpts) {
|
}, opts?: Oazapfts.RequestOpts) {
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { AssetController } from 'src/controllers/asset.controller';
|
||||||
import { AuditController } from 'src/controllers/audit.controller';
|
import { AuditController } from 'src/controllers/audit.controller';
|
||||||
import { AuthController } from 'src/controllers/auth.controller';
|
import { AuthController } from 'src/controllers/auth.controller';
|
||||||
import { DownloadController } from 'src/controllers/download.controller';
|
import { DownloadController } from 'src/controllers/download.controller';
|
||||||
|
import { DuplicateController } from 'src/controllers/duplicate.controller';
|
||||||
import { FaceController } from 'src/controllers/face.controller';
|
import { FaceController } from 'src/controllers/face.controller';
|
||||||
import { ReportController } from 'src/controllers/file-report.controller';
|
import { ReportController } from 'src/controllers/file-report.controller';
|
||||||
import { JobController } from 'src/controllers/job.controller';
|
import { JobController } from 'src/controllers/job.controller';
|
||||||
|
@ -37,6 +38,7 @@ export const controllers = [
|
||||||
AuditController,
|
AuditController,
|
||||||
AuthController,
|
AuthController,
|
||||||
DownloadController,
|
DownloadController,
|
||||||
|
DuplicateController,
|
||||||
FaceController,
|
FaceController,
|
||||||
JobController,
|
JobController,
|
||||||
LibraryController,
|
LibraryController,
|
||||||
|
|
Loading…
Reference in a new issue