Skip to content

Latest commit

 

History

History
166 lines (144 loc) · 3.6 KB

misc.md

File metadata and controls

166 lines (144 loc) · 3.6 KB

杂项

获取 CSRF 令牌

请求 GET /
响应主体 text/html (可以通过 document.querySelector("meta[name=csrf-token]").content 获取)

获取配置

请求 GET /_lfe/config
响应主体 application/json (ConfigResponse)

获取标签

请求 GET /_lfe/tags
响应主体 application/json (TagsResponse)

获取咕值排名

请求 GET /ranking
参数 RankingListParams
响应主体 application/json (DataResponse<{ rankList: List<Rating> }>)

获取等级分排名

请求 GET /ranking/elo
参数 { page?: number }
响应主体 application/json (DataResponse<{ ranking: List<EloRating & { previous: EloRating | null }> }>)

获取通知

请求 GET /user/notification
参数 NotificationsParams
响应主体 application/json (DataResponse<NotificationsData>)

获取广告

请求 GET /api/qiaFan/getFan/:id
响应主体 application/json ({ advertisement: { image: Image; url: string; id: number } })

冬日绘版内容

请求 GET /paintboard/board
响应主体 text/plain (1000 行 * 600 列的字符矩阵,第 i 行第 j 个字符表示第 j 行第 i 个像素。)

冬日绘版重置 token

请求 POST /paintboard/resetToken
响应主体 application/json ({ token: string })

冬日绘版绘制

请求 POST /paintboard/paint
参数 { token?: string }
请求主体 application/json ({ x: number; y: number; color: number })
响应主体 application/json ({})