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:
@@ -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"),
|
||||
|
||||
@@ -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()
|
||||
|
||||
2
main.py
2
main.py
@@ -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 提供的额外 API(g0v0-api) 均以 `/api/private/` 开头。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user