1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-16 07:24:40 +02:00

refactor(server): plural endpoints (#9667)

This commit is contained in:
Jason Rasmussen
2024-05-22 13:24:57 -04:00
committed by GitHub
parent 6a4c2e97c0
commit 202745f14b
36 changed files with 589 additions and 584 deletions

View File

@ -16,13 +16,13 @@ class ActivityApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /activity' operation and returns the [Response].
/// Performs an HTTP 'POST /activities' operation and returns the [Response].
/// Parameters:
///
/// * [ActivityCreateDto] activityCreateDto (required):
Future<Response> createActivityWithHttpInfo(ActivityCreateDto activityCreateDto,) async {
// ignore: prefer_const_declarations
final path = r'/activity';
final path = r'/activities';
// ignore: prefer_final_locals
Object? postBody = activityCreateDto;
@ -63,13 +63,13 @@ class ActivityApi {
return null;
}
/// Performs an HTTP 'DELETE /activity/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /activities/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> deleteActivityWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/activity/{id}'
final path = r'/activities/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -103,7 +103,7 @@ class ActivityApi {
}
}
/// Performs an HTTP 'GET /activity' operation and returns the [Response].
/// Performs an HTTP 'GET /activities' operation and returns the [Response].
/// Parameters:
///
/// * [String] albumId (required):
@ -117,7 +117,7 @@ class ActivityApi {
/// * [String] userId:
Future<Response> getActivitiesWithHttpInfo(String albumId, { String? assetId, ReactionLevel? level, ReactionType? type, String? userId, }) async {
// ignore: prefer_const_declarations
final path = r'/activity';
final path = r'/activities';
// ignore: prefer_final_locals
Object? postBody;
@ -183,7 +183,7 @@ class ActivityApi {
return null;
}
/// Performs an HTTP 'GET /activity/statistics' operation and returns the [Response].
/// Performs an HTTP 'GET /activities/statistics' operation and returns the [Response].
/// Parameters:
///
/// * [String] albumId (required):
@ -191,7 +191,7 @@ class ActivityApi {
/// * [String] assetId:
Future<Response> getActivityStatisticsWithHttpInfo(String albumId, { String? assetId, }) async {
// ignore: prefer_const_declarations
final path = r'/activity/statistics';
final path = r'/activities/statistics';
// ignore: prefer_final_locals
Object? postBody;

View File

@ -16,7 +16,7 @@ class AlbumApi {
final ApiClient apiClient;
/// Performs an HTTP 'PUT /album/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'PUT /albums/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -26,7 +26,7 @@ class AlbumApi {
/// * [String] key:
Future<Response> addAssetsToAlbumWithHttpInfo(String id, BulkIdsDto bulkIdsDto, { String? key, }) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}/assets'
final path = r'/albums/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -79,7 +79,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'PUT /album/{id}/users' operation and returns the [Response].
/// Performs an HTTP 'PUT /albums/{id}/users' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -87,7 +87,7 @@ class AlbumApi {
/// * [AddUsersDto] addUsersDto (required):
Future<Response> addUsersToAlbumWithHttpInfo(String id, AddUsersDto addUsersDto,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}/users'
final path = r'/albums/{id}/users'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -131,13 +131,13 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'POST /album' operation and returns the [Response].
/// Performs an HTTP 'POST /albums' operation and returns the [Response].
/// Parameters:
///
/// * [CreateAlbumDto] createAlbumDto (required):
Future<Response> createAlbumWithHttpInfo(CreateAlbumDto createAlbumDto,) async {
// ignore: prefer_const_declarations
final path = r'/album';
final path = r'/albums';
// ignore: prefer_final_locals
Object? postBody = createAlbumDto;
@ -178,13 +178,13 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /albums/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> deleteAlbumWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}'
final path = r'/albums/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -218,10 +218,10 @@ class AlbumApi {
}
}
/// Performs an HTTP 'GET /album/count' operation and returns the [Response].
/// Performs an HTTP 'GET /albums/count' operation and returns the [Response].
Future<Response> getAlbumCountWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/album/count';
final path = r'/albums/count';
// ignore: prefer_final_locals
Object? postBody;
@ -259,7 +259,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'GET /album/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /albums/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -269,7 +269,7 @@ class AlbumApi {
/// * [bool] withoutAssets:
Future<Response> getAlbumInfoWithHttpInfo(String id, { String? key, bool? withoutAssets, }) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}'
final path = r'/albums/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -322,7 +322,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'GET /album' operation and returns the [Response].
/// Performs an HTTP 'GET /albums' operation and returns the [Response].
/// Parameters:
///
/// * [String] assetId:
@ -331,7 +331,7 @@ class AlbumApi {
/// * [bool] shared:
Future<Response> getAllAlbumsWithHttpInfo({ String? assetId, bool? shared, }) async {
// ignore: prefer_const_declarations
final path = r'/album';
final path = r'/albums';
// ignore: prefer_final_locals
Object? postBody;
@ -385,7 +385,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'DELETE /albums/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -393,7 +393,7 @@ class AlbumApi {
/// * [BulkIdsDto] bulkIdsDto (required):
Future<Response> removeAssetFromAlbumWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}/assets'
final path = r'/albums/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -440,7 +440,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{id}/user/{userId}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /albums/{id}/user/{userId}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -448,7 +448,7 @@ class AlbumApi {
/// * [String] userId (required):
Future<Response> removeUserFromAlbumWithHttpInfo(String id, String userId,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}/user/{userId}'
final path = r'/albums/{id}/user/{userId}'
.replaceAll('{id}', id)
.replaceAll('{userId}', userId);
@ -485,7 +485,7 @@ class AlbumApi {
}
}
/// Performs an HTTP 'PATCH /album/{id}' operation and returns the [Response].
/// Performs an HTTP 'PATCH /albums/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -493,7 +493,7 @@ class AlbumApi {
/// * [UpdateAlbumDto] updateAlbumDto (required):
Future<Response> updateAlbumInfoWithHttpInfo(String id, UpdateAlbumDto updateAlbumDto,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}'
final path = r'/albums/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -537,7 +537,7 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'PUT /album/{id}/user/{userId}' operation and returns the [Response].
/// Performs an HTTP 'PUT /albums/{id}/user/{userId}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -547,7 +547,7 @@ class AlbumApi {
/// * [UpdateAlbumUserDto] updateAlbumUserDto (required):
Future<Response> updateAlbumUserWithHttpInfo(String id, String userId, UpdateAlbumUserDto updateAlbumUserDto,) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}/user/{userId}'
final path = r'/albums/{id}/user/{userId}'
.replaceAll('{id}', id)
.replaceAll('{userId}', userId);

View File

@ -16,13 +16,13 @@ class APIKeyApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /api-key' operation and returns the [Response].
/// Performs an HTTP 'POST /api-keys' operation and returns the [Response].
/// Parameters:
///
/// * [APIKeyCreateDto] aPIKeyCreateDto (required):
Future<Response> createApiKeyWithHttpInfo(APIKeyCreateDto aPIKeyCreateDto,) async {
// ignore: prefer_const_declarations
final path = r'/api-key';
final path = r'/api-keys';
// ignore: prefer_final_locals
Object? postBody = aPIKeyCreateDto;
@ -63,13 +63,13 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'DELETE /api-key/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /api-keys/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> deleteApiKeyWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/api-key/{id}'
final path = r'/api-keys/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -103,13 +103,13 @@ class APIKeyApi {
}
}
/// Performs an HTTP 'GET /api-key/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /api-keys/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getApiKeyWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/api-key/{id}'
final path = r'/api-keys/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -151,10 +151,10 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'GET /api-key' operation and returns the [Response].
/// Performs an HTTP 'GET /api-keys' operation and returns the [Response].
Future<Response> getApiKeysWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/api-key';
final path = r'/api-keys';
// ignore: prefer_final_locals
Object? postBody;
@ -195,7 +195,7 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'PUT /api-key/{id}' operation and returns the [Response].
/// Performs an HTTP 'PUT /api-keys/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -203,7 +203,7 @@ class APIKeyApi {
/// * [APIKeyUpdateDto] aPIKeyUpdateDto (required):
Future<Response> updateApiKeyWithHttpInfo(String id, APIKeyUpdateDto aPIKeyUpdateDto,) async {
// ignore: prefer_const_declarations
final path = r'/api-key/{id}'
final path = r'/api-keys/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class FaceApi {
final ApiClient apiClient;
/// Performs an HTTP 'GET /face' operation and returns the [Response].
/// Performs an HTTP 'GET /faces' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getFacesWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/face';
final path = r'/faces';
// ignore: prefer_final_locals
Object? postBody;
@ -68,7 +68,7 @@ class FaceApi {
return null;
}
/// Performs an HTTP 'PUT /face/{id}' operation and returns the [Response].
/// Performs an HTTP 'PUT /faces/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -76,7 +76,7 @@ class FaceApi {
/// * [FaceDto] faceDto (required):
Future<Response> reassignFacesByIdWithHttpInfo(String id, FaceDto faceDto,) async {
// ignore: prefer_const_declarations
final path = r'/face/{id}'
final path = r'/faces/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class FileReportApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /report/fix' operation and returns the [Response].
/// Performs an HTTP 'POST /reports/fix' operation and returns the [Response].
/// Parameters:
///
/// * [FileReportFixDto] fileReportFixDto (required):
Future<Response> fixAuditFilesWithHttpInfo(FileReportFixDto fileReportFixDto,) async {
// ignore: prefer_const_declarations
final path = r'/report/fix';
final path = r'/reports/fix';
// ignore: prefer_final_locals
Object? postBody = fileReportFixDto;
@ -55,10 +55,10 @@ class FileReportApi {
}
}
/// Performs an HTTP 'GET /report' operation and returns the [Response].
/// Performs an HTTP 'GET /reports' operation and returns the [Response].
Future<Response> getAuditFilesWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/report';
final path = r'/reports';
// ignore: prefer_final_locals
Object? postBody;
@ -96,13 +96,13 @@ class FileReportApi {
return null;
}
/// Performs an HTTP 'POST /report/checksum' operation and returns the [Response].
/// Performs an HTTP 'POST /reports/checksum' operation and returns the [Response].
/// Parameters:
///
/// * [FileChecksumDto] fileChecksumDto (required):
Future<Response> getFileChecksumsWithHttpInfo(FileChecksumDto fileChecksumDto,) async {
// ignore: prefer_const_declarations
final path = r'/report/checksum';
final path = r'/reports/checksum';
// ignore: prefer_final_locals
Object? postBody = fileChecksumDto;

View File

@ -16,13 +16,13 @@ class LibraryApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /library' operation and returns the [Response].
/// Performs an HTTP 'POST /libraries' operation and returns the [Response].
/// Parameters:
///
/// * [CreateLibraryDto] createLibraryDto (required):
Future<Response> createLibraryWithHttpInfo(CreateLibraryDto createLibraryDto,) async {
// ignore: prefer_const_declarations
final path = r'/library';
final path = r'/libraries';
// ignore: prefer_final_locals
Object? postBody = createLibraryDto;
@ -63,13 +63,13 @@ class LibraryApi {
return null;
}
/// Performs an HTTP 'DELETE /library/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /libraries/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> deleteLibraryWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}'
final path = r'/libraries/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -103,10 +103,10 @@ class LibraryApi {
}
}
/// Performs an HTTP 'GET /library' operation and returns the [Response].
/// Performs an HTTP 'GET /libraries' operation and returns the [Response].
Future<Response> getAllLibrariesWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/library';
final path = r'/libraries';
// ignore: prefer_final_locals
Object? postBody;
@ -147,13 +147,13 @@ class LibraryApi {
return null;
}
/// Performs an HTTP 'GET /library/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /libraries/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getLibraryWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}'
final path = r'/libraries/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -195,13 +195,13 @@ class LibraryApi {
return null;
}
/// Performs an HTTP 'GET /library/{id}/statistics' operation and returns the [Response].
/// Performs an HTTP 'GET /libraries/{id}/statistics' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getLibraryStatisticsWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}/statistics'
final path = r'/libraries/{id}/statistics'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -243,13 +243,13 @@ class LibraryApi {
return null;
}
/// Performs an HTTP 'POST /library/{id}/removeOffline' operation and returns the [Response].
/// Performs an HTTP 'POST /libraries/{id}/removeOffline' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> removeOfflineFilesWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}/removeOffline'
final path = r'/libraries/{id}/removeOffline'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -283,7 +283,7 @@ class LibraryApi {
}
}
/// Performs an HTTP 'POST /library/{id}/scan' operation and returns the [Response].
/// Performs an HTTP 'POST /libraries/{id}/scan' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -291,7 +291,7 @@ class LibraryApi {
/// * [ScanLibraryDto] scanLibraryDto (required):
Future<Response> scanLibraryWithHttpInfo(String id, ScanLibraryDto scanLibraryDto,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}/scan'
final path = r'/libraries/{id}/scan'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -327,7 +327,7 @@ class LibraryApi {
}
}
/// Performs an HTTP 'PUT /library/{id}' operation and returns the [Response].
/// Performs an HTTP 'PUT /libraries/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -335,7 +335,7 @@ class LibraryApi {
/// * [UpdateLibraryDto] updateLibraryDto (required):
Future<Response> updateLibraryWithHttpInfo(String id, UpdateLibraryDto updateLibraryDto,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}'
final path = r'/libraries/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -379,7 +379,7 @@ class LibraryApi {
return null;
}
/// Performs an HTTP 'POST /library/{id}/validate' operation and returns the [Response].
/// Performs an HTTP 'POST /libraries/{id}/validate' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -387,7 +387,7 @@ class LibraryApi {
/// * [ValidateLibraryDto] validateLibraryDto (required):
Future<Response> validateWithHttpInfo(String id, ValidateLibraryDto validateLibraryDto,) async {
// ignore: prefer_const_declarations
final path = r'/library/{id}/validate'
final path = r'/libraries/{id}/validate'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class PartnerApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /partner/{id}' operation and returns the [Response].
/// Performs an HTTP 'POST /partners/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> createPartnerWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/partner/{id}'
final path = r'/partners/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -64,13 +64,13 @@ class PartnerApi {
return null;
}
/// Performs an HTTP 'GET /partner' operation and returns the [Response].
/// Performs an HTTP 'GET /partners' operation and returns the [Response].
/// Parameters:
///
/// * [String] direction (required):
Future<Response> getPartnersWithHttpInfo(String direction,) async {
// ignore: prefer_const_declarations
final path = r'/partner';
final path = r'/partners';
// ignore: prefer_final_locals
Object? postBody;
@ -116,13 +116,13 @@ class PartnerApi {
return null;
}
/// Performs an HTTP 'DELETE /partner/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /partners/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> removePartnerWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/partner/{id}'
final path = r'/partners/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -156,7 +156,7 @@ class PartnerApi {
}
}
/// Performs an HTTP 'PUT /partner/{id}' operation and returns the [Response].
/// Performs an HTTP 'PUT /partners/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -164,7 +164,7 @@ class PartnerApi {
/// * [UpdatePartnerDto] updatePartnerDto (required):
Future<Response> updatePartnerWithHttpInfo(String id, UpdatePartnerDto updatePartnerDto,) async {
// ignore: prefer_const_declarations
final path = r'/partner/{id}'
final path = r'/partners/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class PersonApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /person' operation and returns the [Response].
/// Performs an HTTP 'POST /people' operation and returns the [Response].
/// Parameters:
///
/// * [PersonCreateDto] personCreateDto (required):
Future<Response> createPersonWithHttpInfo(PersonCreateDto personCreateDto,) async {
// ignore: prefer_const_declarations
final path = r'/person';
final path = r'/people';
// ignore: prefer_final_locals
Object? postBody = personCreateDto;
@ -63,13 +63,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'GET /person' operation and returns the [Response].
/// Performs an HTTP 'GET /people' operation and returns the [Response].
/// Parameters:
///
/// * [bool] withHidden:
Future<Response> getAllPeopleWithHttpInfo({ bool? withHidden, }) async {
// ignore: prefer_const_declarations
final path = r'/person';
final path = r'/people';
// ignore: prefer_final_locals
Object? postBody;
@ -114,13 +114,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'GET /person/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /people/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getPersonWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}'
final path = r'/people/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -162,13 +162,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'GET /person/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'GET /people/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getPersonAssetsWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}/assets'
final path = r'/people/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -213,13 +213,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'GET /person/{id}/statistics' operation and returns the [Response].
/// Performs an HTTP 'GET /people/{id}/statistics' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getPersonStatisticsWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}/statistics'
final path = r'/people/{id}/statistics'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -261,13 +261,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'GET /person/{id}/thumbnail' operation and returns the [Response].
/// Performs an HTTP 'GET /people/{id}/thumbnail' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getPersonThumbnailWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}/thumbnail'
final path = r'/people/{id}/thumbnail'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -309,7 +309,7 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'POST /person/{id}/merge' operation and returns the [Response].
/// Performs an HTTP 'POST /people/{id}/merge' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -317,7 +317,7 @@ class PersonApi {
/// * [MergePersonDto] mergePersonDto (required):
Future<Response> mergePersonWithHttpInfo(String id, MergePersonDto mergePersonDto,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}/merge'
final path = r'/people/{id}/merge'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -364,7 +364,7 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'PUT /person/{id}/reassign' operation and returns the [Response].
/// Performs an HTTP 'PUT /people/{id}/reassign' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -372,7 +372,7 @@ class PersonApi {
/// * [AssetFaceUpdateDto] assetFaceUpdateDto (required):
Future<Response> reassignFacesWithHttpInfo(String id, AssetFaceUpdateDto assetFaceUpdateDto,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}/reassign'
final path = r'/people/{id}/reassign'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -419,13 +419,13 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'PUT /person' operation and returns the [Response].
/// Performs an HTTP 'PUT /people' operation and returns the [Response].
/// Parameters:
///
/// * [PeopleUpdateDto] peopleUpdateDto (required):
Future<Response> updatePeopleWithHttpInfo(PeopleUpdateDto peopleUpdateDto,) async {
// ignore: prefer_const_declarations
final path = r'/person';
final path = r'/people';
// ignore: prefer_final_locals
Object? postBody = peopleUpdateDto;
@ -469,7 +469,7 @@ class PersonApi {
return null;
}
/// Performs an HTTP 'PUT /person/{id}' operation and returns the [Response].
/// Performs an HTTP 'PUT /people/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -477,7 +477,7 @@ class PersonApi {
/// * [PersonUpdateDto] personUpdateDto (required):
Future<Response> updatePersonWithHttpInfo(String id, PersonUpdateDto personUpdateDto,) async {
// ignore: prefer_const_declarations
final path = r'/person/{id}'
final path = r'/people/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,7 +16,7 @@ class SharedLinkApi {
final ApiClient apiClient;
/// Performs an HTTP 'PUT /shared-link/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'PUT /shared-links/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -26,7 +26,7 @@ class SharedLinkApi {
/// * [String] key:
Future<Response> addSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, }) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/{id}/assets'
final path = r'/shared-links/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -79,13 +79,13 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'POST /shared-link' operation and returns the [Response].
/// Performs an HTTP 'POST /shared-links' operation and returns the [Response].
/// Parameters:
///
/// * [SharedLinkCreateDto] sharedLinkCreateDto (required):
Future<Response> createSharedLinkWithHttpInfo(SharedLinkCreateDto sharedLinkCreateDto,) async {
// ignore: prefer_const_declarations
final path = r'/shared-link';
final path = r'/shared-links';
// ignore: prefer_final_locals
Object? postBody = sharedLinkCreateDto;
@ -126,10 +126,10 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'GET /shared-link' operation and returns the [Response].
/// Performs an HTTP 'GET /shared-links' operation and returns the [Response].
Future<Response> getAllSharedLinksWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/shared-link';
final path = r'/shared-links';
// ignore: prefer_final_locals
Object? postBody;
@ -170,7 +170,7 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'GET /shared-link/me' operation and returns the [Response].
/// Performs an HTTP 'GET /shared-links/me' operation and returns the [Response].
/// Parameters:
///
/// * [String] key:
@ -180,7 +180,7 @@ class SharedLinkApi {
/// * [String] token:
Future<Response> getMySharedLinkWithHttpInfo({ String? key, String? password, String? token, }) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/me';
final path = r'/shared-links/me';
// ignore: prefer_final_locals
Object? postBody;
@ -235,13 +235,13 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'GET /shared-link/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /shared-links/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getSharedLinkByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/{id}'
final path = r'/shared-links/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -283,13 +283,13 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'DELETE /shared-link/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /shared-links/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> removeSharedLinkWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/{id}'
final path = r'/shared-links/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -323,7 +323,7 @@ class SharedLinkApi {
}
}
/// Performs an HTTP 'DELETE /shared-link/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'DELETE /shared-links/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -333,7 +333,7 @@ class SharedLinkApi {
/// * [String] key:
Future<Response> removeSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, }) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/{id}/assets'
final path = r'/shared-links/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -386,7 +386,7 @@ class SharedLinkApi {
return null;
}
/// Performs an HTTP 'PATCH /shared-link/{id}' operation and returns the [Response].
/// Performs an HTTP 'PATCH /shared-links/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -394,7 +394,7 @@ class SharedLinkApi {
/// * [SharedLinkEditDto] sharedLinkEditDto (required):
Future<Response> updateSharedLinkWithHttpInfo(String id, SharedLinkEditDto sharedLinkEditDto,) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/{id}'
final path = r'/shared-links/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class TagApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /tag' operation and returns the [Response].
/// Performs an HTTP 'POST /tags' operation and returns the [Response].
/// Parameters:
///
/// * [CreateTagDto] createTagDto (required):
Future<Response> createTagWithHttpInfo(CreateTagDto createTagDto,) async {
// ignore: prefer_const_declarations
final path = r'/tag';
final path = r'/tags';
// ignore: prefer_final_locals
Object? postBody = createTagDto;
@ -63,13 +63,13 @@ class TagApi {
return null;
}
/// Performs an HTTP 'DELETE /tag/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /tags/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> deleteTagWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}'
final path = r'/tags/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -103,10 +103,10 @@ class TagApi {
}
}
/// Performs an HTTP 'GET /tag' operation and returns the [Response].
/// Performs an HTTP 'GET /tags' operation and returns the [Response].
Future<Response> getAllTagsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/tag';
final path = r'/tags';
// ignore: prefer_final_locals
Object? postBody;
@ -147,13 +147,13 @@ class TagApi {
return null;
}
/// Performs an HTTP 'GET /tag/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'GET /tags/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getTagAssetsWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}/assets'
final path = r'/tags/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -198,13 +198,13 @@ class TagApi {
return null;
}
/// Performs an HTTP 'GET /tag/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /tags/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getTagByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}'
final path = r'/tags/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -246,7 +246,7 @@ class TagApi {
return null;
}
/// Performs an HTTP 'PUT /tag/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'PUT /tags/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -254,7 +254,7 @@ class TagApi {
/// * [AssetIdsDto] assetIdsDto (required):
Future<Response> tagAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}/assets'
final path = r'/tags/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -301,7 +301,7 @@ class TagApi {
return null;
}
/// Performs an HTTP 'DELETE /tag/{id}/assets' operation and returns the [Response].
/// Performs an HTTP 'DELETE /tags/{id}/assets' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -309,7 +309,7 @@ class TagApi {
/// * [AssetIdsDto] assetIdsDto (required):
Future<Response> untagAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}/assets'
final path = r'/tags/{id}/assets'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -356,7 +356,7 @@ class TagApi {
return null;
}
/// Performs an HTTP 'PATCH /tag/{id}' operation and returns the [Response].
/// Performs an HTTP 'PATCH /tags/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -364,7 +364,7 @@ class TagApi {
/// * [UpdateTagDto] updateTagDto (required):
Future<Response> updateTagWithHttpInfo(String id, UpdateTagDto updateTagDto,) async {
// ignore: prefer_const_declarations
final path = r'/tag/{id}'
final path = r'/tags/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals

View File

@ -16,13 +16,13 @@ class UserApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /user/profile-image' operation and returns the [Response].
/// Performs an HTTP 'POST /users/profile-image' operation and returns the [Response].
/// Parameters:
///
/// * [MultipartFile] file (required):
Future<Response> createProfileImageWithHttpInfo(MultipartFile file,) async {
// ignore: prefer_const_declarations
final path = r'/user/profile-image';
final path = r'/users/profile-image';
// ignore: prefer_final_locals
Object? postBody;
@ -73,13 +73,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'POST /user' operation and returns the [Response].
/// Performs an HTTP 'POST /users' operation and returns the [Response].
/// Parameters:
///
/// * [CreateUserDto] createUserDto (required):
Future<Response> createUserWithHttpInfo(CreateUserDto createUserDto,) async {
// ignore: prefer_const_declarations
final path = r'/user';
final path = r'/users';
// ignore: prefer_final_locals
Object? postBody = createUserDto;
@ -120,10 +120,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'DELETE /user/profile-image' operation and returns the [Response].
/// Performs an HTTP 'DELETE /users/profile-image' operation and returns the [Response].
Future<Response> deleteProfileImageWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/user/profile-image';
final path = r'/users/profile-image';
// ignore: prefer_final_locals
Object? postBody;
@ -153,7 +153,7 @@ class UserApi {
}
}
/// Performs an HTTP 'DELETE /user/{id}' operation and returns the [Response].
/// Performs an HTTP 'DELETE /users/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
@ -161,7 +161,7 @@ class UserApi {
/// * [DeleteUserDto] deleteUserDto (required):
Future<Response> deleteUserWithHttpInfo(String id, DeleteUserDto deleteUserDto,) async {
// ignore: prefer_const_declarations
final path = r'/user/{id}'
final path = r'/users/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -205,13 +205,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user' operation and returns the [Response].
/// Performs an HTTP 'GET /users' operation and returns the [Response].
/// Parameters:
///
/// * [bool] isAll (required):
Future<Response> getAllUsersWithHttpInfo(bool isAll,) async {
// ignore: prefer_const_declarations
final path = r'/user';
final path = r'/users';
// ignore: prefer_final_locals
Object? postBody;
@ -257,10 +257,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/me' operation and returns the [Response].
/// Performs an HTTP 'GET /users/me' operation and returns the [Response].
Future<Response> getMyUserInfoWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/user/me';
final path = r'/users/me';
// ignore: prefer_final_locals
Object? postBody;
@ -298,13 +298,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/profile-image/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /users/profile-image/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getProfileImageWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/user/profile-image/{id}'
final path = r'/users/profile-image/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -346,13 +346,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/info/{id}' operation and returns the [Response].
/// Performs an HTTP 'GET /users/info/{id}' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> getUserByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/user/info/{id}'
final path = r'/users/info/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -394,13 +394,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'POST /user/{id}/restore' operation and returns the [Response].
/// Performs an HTTP 'POST /users/{id}/restore' operation and returns the [Response].
/// Parameters:
///
/// * [String] id (required):
Future<Response> restoreUserWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/user/{id}/restore'
final path = r'/users/{id}/restore'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
@ -442,13 +442,13 @@ class UserApi {
return null;
}
/// Performs an HTTP 'PUT /user' operation and returns the [Response].
/// Performs an HTTP 'PUT /users' operation and returns the [Response].
/// Parameters:
///
/// * [UpdateUserDto] updateUserDto (required):
Future<Response> updateUserWithHttpInfo(UpdateUserDto updateUserDto,) async {
// ignore: prefer_const_declarations
final path = r'/user';
final path = r'/users';
// ignore: prefer_final_locals
Object? postBody = updateUserDto;