fix(api): see details

/team/{team_id}: fix tag typo

beatmapset: remove download-service API

API Doc: fix v1 APi prefix
This commit is contained in:
MingxuanGame
2025-08-30 12:08:31 +00:00
parent 59ee88c603
commit 617fdc2cfc
3 changed files with 2 additions and 16 deletions

View File

@@ -188,7 +188,7 @@ class TeamQueryResp(BaseModel):
members: list[UserResp]
@router.get("/team/{team_id}", name="查询战队", response_model=TeamQueryResp, tags=["用户", "g0v0 API"])
@router.get("/team/{team_id}", name="查询战队", response_model=TeamQueryResp, tags=["战队", "g0v0 API"])
async def get_team(
session: Database,
team_id: int = Path(..., description="战队 ID"),

View File

@@ -215,17 +215,3 @@ async def favourite_beatmapset(
else:
await db.delete(existing_favourite)
await db.commit()
@router.get(
"/beatmapsets/download-status",
tags=["谱面集"],
name="下载服务状态",
description="获取谱面下载服务的健康状态和负载均衡信息。",
)
async def get_download_service_status(
current_user: User = Security(get_current_user, scopes=["public"]),
download_service: BeatmapDownloadService = Depends(get_beatmap_download_service),
):
"""获取下载服务状态"""
return download_service.get_service_status()

View File

@@ -86,7 +86,7 @@ desc = f"""osu! API 模拟服务器,支持 osu! API v1, v2 和 osu!lazer 的
## 端点说明
所有 v2 API 均以 `/api/v2/` 开头,所有 v1 API 均以 `/api/v1` 开头(直接访问 `/api` 的 v1 API 会进行重定向)。
所有 v2 API 均以 `/api/v2/` 开头,所有 v1 API 均以 `/api/v1/` 开头(直接访问 `/api` 的 v1 API 会进行重定向)。
所有 g0v0-server 提供的额外 APIg0v0-api 均以 `/api/private/` 开头。