GET /api/admin/threads/
- 전체 쓰레드 목록
- 권한: 관리자
- parameters
key |
type |
default |
required |
description |
id |
pk |
|
|
thread id |
forum_name |
char(150) |
|
|
forum unique id |
user |
User |
|
|
쓰레드 작성자 |
name |
char(150) |
|
|
쓰레드 익명 작성자 |
title |
char(100) |
|
|
쓰레드 제목 |
up |
int |
0 |
|
추천수 |
down |
int |
0 |
|
비추수 |
reply_count |
int |
0 |
|
댓글 수 |
is_pinned |
bool |
False |
|
고정 여부 |
is_deleted |
bool |
False |
|
삭제 여부 |
created_at |
datetime |
|
|
쓰레드 작성일 |
modified_at |
datetime |
|
|
쓰레드 최근 수정일 |
key |
type |
default |
required |
description |
pin |
bool |
|
|
고정 여부로 필터 (True: 고정된 쓰레드만) |
delete |
bool |
|
|
삭제 여부로 필터 (True: 삭제된 쓰레드만) |
q |
char |
|
|
제목, 내용, 작성자로 검색 |
- sort parameters
- input sample
- GET /api/admin/threads/?pin=true&delete=false&q=bye&sort=up
- output sample
{
"pagination": {
"item_total": 7,
"page_total": 1,
"current_page": 1,
"next_link": null,
"prev_link": null,
"first_link": null
},
"data": [
{
"id": 1,
"forum_name": "illegallysmolcats",
"user": {
"id": 2,
"username": "[email protected]",
"call_name": "B B"
},
"name": null,
"title": "Bye",
"up": 2,
"down": 1,
"reply_count": 0,
"is_pinned": true,
"is_deleted": false,
"created_at": "2023-09-25T09:59:43+0900",
"modified_at": "2023-09-25T12:48:19+0900"
},
{
"id": 2,
"forum_name": "ano",
"user": null,
"name": "1@a",
"title": "Bye",
"up": 1,
"down": 3,
"reply_count": 2,
"is_pinned": true,
"is_deleted": false,
"created_at": "2023-09-25T10:29:27+0900",
"modified_at": "2023-09-25T10:29:27+0900"
}
]
}
GET /api/admin/replies/
key |
type |
default |
required |
description |
id |
pk |
|
|
reply id |
forum_name |
char(150) |
|
|
forum unique id |
thread |
Thread |
|
|
댓글 달린 쓰레드 |
user |
User |
|
|
댓글 작성자 |
name |
char(150) |
|
|
댓글 익명 작성자 |
up |
int |
0 |
|
추천수 |
down |
int |
0 |
|
비추수 |
is_deleted |
bool |
False |
|
삭제 여부 |
created_at |
datetime |
|
|
쓰레드 작성일 |
modified_at |
datetime |
|
|
쓰레드 최근 수정일 |