| 请求 | GET /api/blog/userBlogs |
|---|---|
| 参数 | { user?: number; page?: number } |
| 响应主体 | application/json ({ blogs: List<BlogSummary> }) |
| 请求 | GET /api/blog/lists |
|---|---|
| 参数 | BlogListParams |
| 响应主体 | application/json ({ status: number; data: List<Blog> }) |
| 请求 | GET /api/blog/detail/:id |
|---|---|
| 响应主体 | application/json ({ status: number; data: List<LegacyBlog> }) |
| 请求 | POST /blogAdmin/article/post_new |
|---|---|
| 请求主体 | application/x-www-form-urlencoded (EditBlogRequest) |
| 响应主体 | application/json ({ status: number; data: number }) |
| 请求 | POST /blogAdmin/article/post_edit/:id |
|---|---|
| 请求主体 | application/x-www-form-urlencoded (EditBlogRequest) |
| 响应主体 | application/json ({ status: number; data: number }) |
| 请求 | POST /api/blog/delete/:id |
|---|---|
| 响应主体 | application/json ({ status: number }) |
| 请求 | POST /blogAdmin/article/list |
|---|---|
| 参数 | { pageType: "list" } |
| 请求主体 | application/x-www-form-urlencoded ({ method: "update"; "blog-id": number[]; "edit-status": number; "csrf-token": string }) |
| 响应主体 | text/html |
| 请求 | POST /blogAdmin/article/list |
|---|---|
| 参数 | { pageType: "trash" } |
| 请求主体 | application/x-www-form-urlencoded ({ method: "recover" | "delete"; "blog-id": number[]; "csrf-token": string }) |
| 响应主体 | text/html |
| 请求 | GET /api/blog/replies/:id |
|---|---|
| 参数 | { page?: number } |
| 响应主体 | application/json ({ status: number; data: List<Comment> }) |
| 请求 | POST /api/blog/reply/:id |
|---|---|
| 请求主体 | application/json ({ content: string }) |
| 响应主体 | application/json ({ status: number; reply: Comment }) |
| 请求 | POST /api/blog/vote/:id |
|---|---|
| 请求主体 | application/json ({ Type: number }) |
| 响应主体 | application/json ({ status: number; data: number }) |
| 请求 | POST /blogAdmin/article/deleteComment/:id |
|---|---|
| 请求主体 | application/x-www-form-urlencoded ({ "reply-id": number; "csrf-token": string }) |
| 响应主体 | application/json ({ status: number; data: string }) |