feat(server): apk links API endpoint for Obtainium Android mobile-server version sync (#18700)
This commit is contained in:
@@ -5275,6 +5275,38 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/server/android-links": {
|
||||
"get": {
|
||||
"operationId": "getAndroidLinks",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ServerApkLinksDto"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
},
|
||||
{
|
||||
"cookie": []
|
||||
},
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Server"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/server/config": {
|
||||
"get": {
|
||||
"operationId": "getServerConfig",
|
||||
@@ -11959,6 +11991,29 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerApkLinksDto": {
|
||||
"properties": {
|
||||
"arm64v8a": {
|
||||
"type": "string"
|
||||
},
|
||||
"armeabiv7a": {
|
||||
"type": "string"
|
||||
},
|
||||
"universal": {
|
||||
"type": "string"
|
||||
},
|
||||
"x86_64": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"arm64v8a",
|
||||
"armeabiv7a",
|
||||
"universal",
|
||||
"x86_64"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ServerConfigDto": {
|
||||
"properties": {
|
||||
"externalDomain": {
|
||||
|
||||
@@ -1004,6 +1004,12 @@ export type ServerAboutResponseDto = {
|
||||
version: string;
|
||||
versionUrl: string;
|
||||
};
|
||||
export type ServerApkLinksDto = {
|
||||
arm64v8a: string;
|
||||
armeabiv7a: string;
|
||||
universal: string;
|
||||
x86_64: string;
|
||||
};
|
||||
export type ServerConfigDto = {
|
||||
externalDomain: string;
|
||||
isInitialized: boolean;
|
||||
@@ -2868,6 +2874,14 @@ export function getAboutInfo(opts?: Oazapfts.RequestOpts) {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function getAndroidLinks(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: ServerApkLinksDto;
|
||||
}>("/server/android-links", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
export function getServerConfig(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
|
||||
Reference in New Issue
Block a user