2022-07-13 12:23:48 +00:00
|
|
|
# openapi
|
|
|
|
Immich API
|
|
|
|
|
|
|
|
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
|
|
|
|
|
|
- API version: 1.17.0
|
|
|
|
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
Dart 2.12 or later
|
|
|
|
|
|
|
|
## Installation & Usage
|
|
|
|
|
|
|
|
### Github
|
|
|
|
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
|
|
|
|
```
|
|
|
|
dependencies:
|
|
|
|
openapi:
|
|
|
|
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
|
|
```
|
|
|
|
|
|
|
|
### Local
|
|
|
|
To use the package in your local drive, add the following dependency to your pubspec.yaml
|
|
|
|
```
|
|
|
|
dependencies:
|
|
|
|
openapi:
|
|
|
|
path: /path/to/openapi
|
|
|
|
```
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
|
|
|
|
|
|
```dart
|
|
|
|
import 'package:openapi/api.dart';
|
|
|
|
|
|
|
|
// TODO Configure HTTP Bearer authorization: bearer
|
|
|
|
// Case 1. Use String Token
|
|
|
|
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
|
|
// Case 2. Use Function which generate token.
|
|
|
|
// String yourTokenGeneratorFunction() { ... }
|
|
|
|
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
|
|
|
|
|
|
final api_instance = AlbumApi();
|
|
|
|
final albumId = albumId_example; // String |
|
|
|
|
final addAssetsDto = AddAssetsDto(); // AddAssetsDto |
|
|
|
|
|
|
|
|
try {
|
|
|
|
final result = api_instance.addAssetsToAlbum(albumId, addAssetsDto);
|
|
|
|
print(result);
|
|
|
|
} catch (e) {
|
|
|
|
print('Exception when calling AlbumApi->addAssetsToAlbum: $e\n');
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Documentation for API Endpoints
|
|
|
|
|
|
|
|
All URIs are relative to */api*
|
|
|
|
|
|
|
|
Class | Method | HTTP request | Description
|
|
|
|
------------ | ------------- | ------------- | -------------
|
|
|
|
*AlbumApi* | [**addAssetsToAlbum**](doc//AlbumApi.md#addassetstoalbum) | **PUT** /album/{albumId}/assets |
|
|
|
|
*AlbumApi* | [**addUsersToAlbum**](doc//AlbumApi.md#adduserstoalbum) | **PUT** /album/{albumId}/users |
|
|
|
|
*AlbumApi* | [**createAlbum**](doc//AlbumApi.md#createalbum) | **POST** /album |
|
|
|
|
*AlbumApi* | [**deleteAlbum**](doc//AlbumApi.md#deletealbum) | **DELETE** /album/{albumId} |
|
2022-10-30 17:38:04 +00:00
|
|
|
*AlbumApi* | [**downloadArchive**](doc//AlbumApi.md#downloadarchive) | **GET** /album/{albumId}/download |
|
2022-09-07 20:16:18 +00:00
|
|
|
*AlbumApi* | [**getAlbumCountByUserId**](doc//AlbumApi.md#getalbumcountbyuserid) | **GET** /album/count-by-user-id |
|
2022-07-13 12:23:48 +00:00
|
|
|
*AlbumApi* | [**getAlbumInfo**](doc//AlbumApi.md#getalbuminfo) | **GET** /album/{albumId} |
|
|
|
|
*AlbumApi* | [**getAllAlbums**](doc//AlbumApi.md#getallalbums) | **GET** /album |
|
|
|
|
*AlbumApi* | [**removeAssetFromAlbum**](doc//AlbumApi.md#removeassetfromalbum) | **DELETE** /album/{albumId}/assets |
|
|
|
|
*AlbumApi* | [**removeUserFromAlbum**](doc//AlbumApi.md#removeuserfromalbum) | **DELETE** /album/{albumId}/user/{userId} |
|
|
|
|
*AlbumApi* | [**updateAlbumInfo**](doc//AlbumApi.md#updatealbuminfo) | **PATCH** /album/{albumId} |
|
|
|
|
*AssetApi* | [**checkDuplicateAsset**](doc//AssetApi.md#checkduplicateasset) | **POST** /asset/check |
|
2022-10-25 14:51:03 +00:00
|
|
|
*AssetApi* | [**checkExistingAssets**](doc//AssetApi.md#checkexistingassets) | **POST** /asset/exist |
|
2022-07-13 12:23:48 +00:00
|
|
|
*AssetApi* | [**deleteAsset**](doc//AssetApi.md#deleteasset) | **DELETE** /asset |
|
|
|
|
*AssetApi* | [**downloadFile**](doc//AssetApi.md#downloadfile) | **GET** /asset/download |
|
|
|
|
*AssetApi* | [**getAllAssets**](doc//AssetApi.md#getallassets) | **GET** /asset |
|
|
|
|
*AssetApi* | [**getAssetById**](doc//AssetApi.md#getassetbyid) | **GET** /asset/assetById/{assetId} |
|
2022-09-04 13:34:39 +00:00
|
|
|
*AssetApi* | [**getAssetByTimeBucket**](doc//AssetApi.md#getassetbytimebucket) | **POST** /asset/time-bucket |
|
|
|
|
*AssetApi* | [**getAssetCountByTimeBucket**](doc//AssetApi.md#getassetcountbytimebucket) | **POST** /asset/count-by-time-bucket |
|
2022-09-07 20:16:18 +00:00
|
|
|
*AssetApi* | [**getAssetCountByUserId**](doc//AssetApi.md#getassetcountbyuserid) | **GET** /asset/count-by-user-id |
|
2022-08-27 05:53:37 +00:00
|
|
|
*AssetApi* | [**getAssetSearchTerms**](doc//AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms |
|
2022-07-13 12:23:48 +00:00
|
|
|
*AssetApi* | [**getAssetThumbnail**](doc//AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{assetId} |
|
2022-08-27 05:53:37 +00:00
|
|
|
*AssetApi* | [**getCuratedLocations**](doc//AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations |
|
|
|
|
*AssetApi* | [**getCuratedObjects**](doc//AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects |
|
2022-07-13 12:23:48 +00:00
|
|
|
*AssetApi* | [**getUserAssetsByDeviceId**](doc//AssetApi.md#getuserassetsbydeviceid) | **GET** /asset/{deviceId} |
|
|
|
|
*AssetApi* | [**searchAsset**](doc//AssetApi.md#searchasset) | **POST** /asset/search |
|
|
|
|
*AssetApi* | [**serveFile**](doc//AssetApi.md#servefile) | **GET** /asset/file |
|
|
|
|
*AssetApi* | [**uploadFile**](doc//AssetApi.md#uploadfile) | **POST** /asset/upload |
|
|
|
|
*AuthenticationApi* | [**adminSignUp**](doc//AuthenticationApi.md#adminsignup) | **POST** /auth/admin-sign-up |
|
|
|
|
*AuthenticationApi* | [**login**](doc//AuthenticationApi.md#login) | **POST** /auth/login |
|
2022-07-19 18:49:58 +00:00
|
|
|
*AuthenticationApi* | [**logout**](doc//AuthenticationApi.md#logout) | **POST** /auth/logout |
|
2022-07-13 12:23:48 +00:00
|
|
|
*AuthenticationApi* | [**validateAccessToken**](doc//AuthenticationApi.md#validateaccesstoken) | **POST** /auth/validateToken |
|
|
|
|
*DeviceInfoApi* | [**createDeviceInfo**](doc//DeviceInfoApi.md#createdeviceinfo) | **POST** /device-info |
|
|
|
|
*DeviceInfoApi* | [**updateDeviceInfo**](doc//DeviceInfoApi.md#updatedeviceinfo) | **PATCH** /device-info |
|
2022-10-06 16:25:54 +00:00
|
|
|
*JobApi* | [**getAllJobsStatus**](doc//JobApi.md#getalljobsstatus) | **GET** /jobs |
|
|
|
|
*JobApi* | [**getJobStatus**](doc//JobApi.md#getjobstatus) | **GET** /jobs/{jobId} |
|
|
|
|
*JobApi* | [**sendJobCommand**](doc//JobApi.md#sendjobcommand) | **PUT** /jobs/{jobId} |
|
2022-07-13 12:23:48 +00:00
|
|
|
*ServerInfoApi* | [**getServerInfo**](doc//ServerInfoApi.md#getserverinfo) | **GET** /server-info |
|
|
|
|
*ServerInfoApi* | [**getServerVersion**](doc//ServerInfoApi.md#getserverversion) | **GET** /server-info/version |
|
2022-10-23 21:54:54 +00:00
|
|
|
*ServerInfoApi* | [**getStats**](doc//ServerInfoApi.md#getstats) | **GET** /server-info/stats |
|
2022-07-13 12:23:48 +00:00
|
|
|
*ServerInfoApi* | [**pingServer**](doc//ServerInfoApi.md#pingserver) | **GET** /server-info/ping |
|
|
|
|
*UserApi* | [**createProfileImage**](doc//UserApi.md#createprofileimage) | **POST** /user/profile-image |
|
|
|
|
*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /user |
|
2022-11-07 21:53:47 +00:00
|
|
|
*UserApi* | [**deleteUser**](doc//UserApi.md#deleteuser) | **DELETE** /user/{userId} |
|
2022-07-13 12:23:48 +00:00
|
|
|
*UserApi* | [**getAllUsers**](doc//UserApi.md#getallusers) | **GET** /user |
|
|
|
|
*UserApi* | [**getMyUserInfo**](doc//UserApi.md#getmyuserinfo) | **GET** /user/me |
|
|
|
|
*UserApi* | [**getProfileImage**](doc//UserApi.md#getprofileimage) | **GET** /user/profile-image/{userId} |
|
2022-07-17 20:09:26 +00:00
|
|
|
*UserApi* | [**getUserById**](doc//UserApi.md#getuserbyid) | **GET** /user/info/{userId} |
|
2022-07-13 12:23:48 +00:00
|
|
|
*UserApi* | [**getUserCount**](doc//UserApi.md#getusercount) | **GET** /user/count |
|
2022-11-07 21:53:47 +00:00
|
|
|
*UserApi* | [**restoreUser**](doc//UserApi.md#restoreuser) | **POST** /user/{userId}/restore |
|
2022-07-13 12:23:48 +00:00
|
|
|
*UserApi* | [**updateUser**](doc//UserApi.md#updateuser) | **PUT** /user |
|
|
|
|
|
|
|
|
|
|
|
|
## Documentation For Models
|
|
|
|
|
|
|
|
- [AddAssetsDto](doc//AddAssetsDto.md)
|
2022-10-28 19:54:09 +00:00
|
|
|
- [AddAssetsResponseDto](doc//AddAssetsResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [AddUsersDto](doc//AddUsersDto.md)
|
|
|
|
- [AdminSignupResponseDto](doc//AdminSignupResponseDto.md)
|
2022-09-07 20:16:18 +00:00
|
|
|
- [AlbumCountResponseDto](doc//AlbumCountResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [AlbumResponseDto](doc//AlbumResponseDto.md)
|
2022-10-06 16:25:54 +00:00
|
|
|
- [AllJobStatusResponseDto](doc//AllJobStatusResponseDto.md)
|
2022-09-04 13:34:39 +00:00
|
|
|
- [AssetCountByTimeBucket](doc//AssetCountByTimeBucket.md)
|
|
|
|
- [AssetCountByTimeBucketResponseDto](doc//AssetCountByTimeBucketResponseDto.md)
|
2022-09-07 20:16:18 +00:00
|
|
|
- [AssetCountByUserIdResponseDto](doc//AssetCountByUserIdResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [AssetFileUploadResponseDto](doc//AssetFileUploadResponseDto.md)
|
|
|
|
- [AssetResponseDto](doc//AssetResponseDto.md)
|
|
|
|
- [AssetTypeEnum](doc//AssetTypeEnum.md)
|
|
|
|
- [CheckDuplicateAssetDto](doc//CheckDuplicateAssetDto.md)
|
|
|
|
- [CheckDuplicateAssetResponseDto](doc//CheckDuplicateAssetResponseDto.md)
|
2022-10-25 14:51:03 +00:00
|
|
|
- [CheckExistingAssetsDto](doc//CheckExistingAssetsDto.md)
|
|
|
|
- [CheckExistingAssetsResponseDto](doc//CheckExistingAssetsResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [CreateAlbumDto](doc//CreateAlbumDto.md)
|
|
|
|
- [CreateDeviceInfoDto](doc//CreateDeviceInfoDto.md)
|
|
|
|
- [CreateProfileImageResponseDto](doc//CreateProfileImageResponseDto.md)
|
|
|
|
- [CreateUserDto](doc//CreateUserDto.md)
|
|
|
|
- [CuratedLocationsResponseDto](doc//CuratedLocationsResponseDto.md)
|
|
|
|
- [CuratedObjectsResponseDto](doc//CuratedObjectsResponseDto.md)
|
|
|
|
- [DeleteAssetDto](doc//DeleteAssetDto.md)
|
|
|
|
- [DeleteAssetResponseDto](doc//DeleteAssetResponseDto.md)
|
|
|
|
- [DeleteAssetStatus](doc//DeleteAssetStatus.md)
|
|
|
|
- [DeviceInfoResponseDto](doc//DeviceInfoResponseDto.md)
|
|
|
|
- [DeviceTypeEnum](doc//DeviceTypeEnum.md)
|
|
|
|
- [ExifResponseDto](doc//ExifResponseDto.md)
|
2022-09-04 13:34:39 +00:00
|
|
|
- [GetAssetByTimeBucketDto](doc//GetAssetByTimeBucketDto.md)
|
|
|
|
- [GetAssetCountByTimeBucketDto](doc//GetAssetCountByTimeBucketDto.md)
|
2022-10-06 16:25:54 +00:00
|
|
|
- [JobCommand](doc//JobCommand.md)
|
|
|
|
- [JobCommandDto](doc//JobCommandDto.md)
|
|
|
|
- [JobCounts](doc//JobCounts.md)
|
|
|
|
- [JobId](doc//JobId.md)
|
|
|
|
- [JobStatusResponseDto](doc//JobStatusResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [LoginCredentialDto](doc//LoginCredentialDto.md)
|
|
|
|
- [LoginResponseDto](doc//LoginResponseDto.md)
|
2022-07-19 18:49:58 +00:00
|
|
|
- [LogoutResponseDto](doc//LogoutResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [RemoveAssetsDto](doc//RemoveAssetsDto.md)
|
|
|
|
- [SearchAssetDto](doc//SearchAssetDto.md)
|
|
|
|
- [ServerInfoResponseDto](doc//ServerInfoResponseDto.md)
|
|
|
|
- [ServerPingResponse](doc//ServerPingResponse.md)
|
2022-10-23 21:54:54 +00:00
|
|
|
- [ServerStatsResponseDto](doc//ServerStatsResponseDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [ServerVersionReponseDto](doc//ServerVersionReponseDto.md)
|
|
|
|
- [SignUpDto](doc//SignUpDto.md)
|
|
|
|
- [SmartInfoResponseDto](doc//SmartInfoResponseDto.md)
|
2022-07-16 04:18:17 +00:00
|
|
|
- [ThumbnailFormat](doc//ThumbnailFormat.md)
|
2022-08-27 05:53:37 +00:00
|
|
|
- [TimeGroupEnum](doc//TimeGroupEnum.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [UpdateAlbumDto](doc//UpdateAlbumDto.md)
|
|
|
|
- [UpdateDeviceInfoDto](doc//UpdateDeviceInfoDto.md)
|
|
|
|
- [UpdateUserDto](doc//UpdateUserDto.md)
|
2022-10-23 21:54:54 +00:00
|
|
|
- [UsageByUserDto](doc//UsageByUserDto.md)
|
2022-07-13 12:23:48 +00:00
|
|
|
- [UserCountResponseDto](doc//UserCountResponseDto.md)
|
|
|
|
- [UserResponseDto](doc//UserResponseDto.md)
|
|
|
|
- [ValidateAccessTokenResponseDto](doc//ValidateAccessTokenResponseDto.md)
|
|
|
|
|
|
|
|
|
|
|
|
## Documentation For Authorization
|
|
|
|
|
|
|
|
|
|
|
|
## bearer
|
|
|
|
|
|
|
|
- **Type**: HTTP Bearer authentication
|
|
|
|
|
|
|
|
|
|
|
|
## Author
|
|
|
|
|
|
|
|
|
|
|
|
|