Skip to content

High performance self-hosted photo and video management solution.

fix(server): rename `android-links` api endpoint to `apk-links` (#18790)

Nicholas3a5fed99e185
diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md
index 22264857e0..73bbe7c1ff 100644
--- a/mobile/openapi/README.md
+++ b/mobile/openapi/README.md
@@ -184,7 +184,7 @@ Class | Method | HTTP request | Description
*SearchApi* | [**searchSmart**](doc//SearchApi.md#searchsmart) | **POST** /search/smart |
*ServerApi* | [**deleteServerLicense**](doc//ServerApi.md#deleteserverlicense) | **DELETE** /server/license |
*ServerApi* | [**getAboutInfo**](doc//ServerApi.md#getaboutinfo) | **GET** /server/about |
-*ServerApi* | [**getAndroidLinks**](doc//ServerApi.md#getandroidlinks) | **GET** /server/android-links |
+*ServerApi* | [**getApkLinks**](doc//ServerApi.md#getapklinks) | **GET** /server/apk-links |
*ServerApi* | [**getServerConfig**](doc//ServerApi.md#getserverconfig) | **GET** /server/config |
*ServerApi* | [**getServerFeatures**](doc//ServerApi.md#getserverfeatures) | **GET** /server/features |
*ServerApi* | [**getServerLicense**](doc//ServerApi.md#getserverlicense) | **GET** /server/license |
diff --git a/mobile/openapi/lib/api/server_api.dart b/mobile/openapi/lib/api/server_api.dart
index 4220e67471..7abdabcd3e 100644
--- a/mobile/openapi/lib/api/server_api.dart
+++ b/mobile/openapi/lib/api/server_api.dart
@@ -90,10 +90,10 @@ class ServerApi {
return null;
}
- /// Performs an HTTP 'GET /server/android-links' operation and returns the [Response].
- Future<Response> getAndroidLinksWithHttpInfo() async {
+ /// Performs an HTTP 'GET /server/apk-links' operation and returns the [Response].
+ Future<Response> getApkLinksWithHttpInfo() async {
// ignore: prefer_const_declarations
- final apiPath = r'/server/android-links';
+ final apiPath = r'/server/apk-links';
// ignore: prefer_final_locals
Object? postBody;
@@ -116,8 +116,8 @@ class ServerApi {
);
}
- Future<ServerApkLinksDto?> getAndroidLinks() async {
- final response = await getAndroidLinksWithHttpInfo();
+ Future<ServerApkLinksDto?> getApkLinks() async {
+ final response = await getApkLinksWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json
index 538a16e0ad..f2886f59c0 100644
--- a/open-api/immich-openapi-specs.json
+++ b/open-api/immich-openapi-specs.json
@@ -5275,9 +5275,9 @@
]
}
},
- "/server/android-links": {
+ "/server/apk-links": {
"get": {
- "operationId": "getAndroidLinks",
+ "operationId": "getApkLinks",
"parameters": [],
"responses": {
"200": {
diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts
index 2b0e2849d1..ac66080865 100644
--- a/open-api/typescript-sdk/src/fetch-client.ts
+++ b/open-api/typescript-sdk/src/fetch-client.ts
@@ -2874,11 +2874,11 @@ export function getAboutInfo(opts?: Oazapfts.RequestOpts) {
...opts
}));
}
-export function getAndroidLinks(opts?: Oazapfts.RequestOpts) {
+export function getApkLinks(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: ServerApkLinksDto;
- }>("/server/android-links", {
+ }>("/server/apk-links", {
...opts
}));
}
diff --git a/server/src/controllers/server.controller.ts b/server/src/controllers/server.controller.ts
index 5bc78574c6..3544fce2a0 100644
--- a/server/src/controllers/server.controller.ts
+++ b/server/src/controllers/server.controller.ts
@@ -35,10 +35,10 @@ export class ServerController {
return this.service.getAboutInfo();
}
- @Get('android-links')
+ @Get('apk-links')
@Authenticated()
- getAndroidLinks(): ServerApkLinksDto {
- return this.service.getAndroidLinks();
+ getApkLinks(): ServerApkLinksDto {
+ return this.service.getApkLinks();
}
@Get('storage')
diff --git a/server/src/services/server.service.ts b/server/src/services/server.service.ts
index e871536c9f..bada717f4a 100644
--- a/server/src/services/server.service.ts
+++ b/server/src/services/server.service.ts
@@ -49,7 +49,7 @@ export class ServerService extends BaseService {
};
}
- getAndroidLinks(): ServerApkLinksDto {
+ getApkLinks(): ServerApkLinksDto {
const baseUrl = `https://github.com/immich-app/immich/releases/download/v${serverVersion.toString()}`;
return {
arm64v8a: `${baseUrl}/app-arm64-v8a-release.apk`,