From 3a5fed99e18553e0185e4c4020002afca556755c Mon Sep 17 00:00:00 2001 From: Nicholas <30300649+NicholasFlamy@users.noreply.github.com> Date: Sat, 31 May 2025 00:27:55 -0400 Subject: [PATCH] fix(server): rename `android-links` api endpoint to `apk-links` (#18790) * remove auth from endpoint and change android to apk * add auth back to `apk-links` --- mobile/openapi/README.md | Bin 36434 -> 36422 bytes mobile/openapi/lib/api/server_api.dart | Bin 21329 -> 21309 bytes open-api/immich-openapi-specs.json | 4 ++-- open-api/typescript-sdk/src/fetch-client.ts | 4 ++-- server/src/controllers/server.controller.ts | 6 +++--- server/src/services/server.service.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 22264857e06ede54e7d422c1a645c4b129231532..73bbe7c1ff77863eae1bcfb3378cb73b985cd0e5 100644 GIT binary patch delta 47 zcmcaKhw0cHrVZOonF_Ke?=_WYFUZcx%*!sG9B3xOnOKmm3*qrwNN!d%GmHQL!f+8h delta 69 zcmX>$hw0KBrVZOox${zr@-tI>GV`*FCo7mq@+3k8a=-!wmLj}R0bPj5L`#Xu56sv$ JOPT3J006o<8bkm9 diff --git a/mobile/openapi/lib/api/server_api.dart b/mobile/openapi/lib/api/server_api.dart index 4220e674714cc6bd708295575c980ee7270db878..7abdabcd3e1c861b014bc2cd12b2138af5582507 100644 GIT binary patch delta 69 zcmcb(jB)QW#tkRAmC;Qt3@Fqf}baOKEvWquA5ZK2!*@jmL QrYe9}AIjX^$h*fC01vMov;Y7A diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 538a16e0a..f2886f59c 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 2b0e2849d..ac6608086 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 5bc78574c..3544fce2a 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 e871536c9..bada717f4 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`,