POST /api/communities/f/{thread_id}/reply/
- 댓글 달기
- 권한: option.permission_reply
- parameters
key |
type |
default |
required |
description |
id |
pk |
|
|
reply id |
thread |
Thread |
|
|
댓글이 달린 쓰레드 |
reply_id |
pk |
0 |
|
댓글의 댓글일 경우 댓글 id. 쓰레드 댓글일 경우 0 |
user |
User |
|
|
댓글 작성자 |
name |
char(150) |
|
|
익명 댓글일 경우 작성자 |
content |
Text |
|
|
댓글 내용 |
is_deleted |
bool |
False |
|
삭제된 댓글 여부 |
date_or_time |
json |
|
|
댓글 작성 날짜에 따라 date or time |
editable |
bool |
|
|
현재 유저의 댓글 수정, 삭제 가능 여부 |
- input sample
- POST /api/communities/f/1/reply/
{
"content": "Meow"
}
{
"data": {
"id": 1,
"thread": {
"id": 1,
"user": {
"id": 2,
"username": "[email protected]",
"call_name": "B B"
},
"title": "Bye"
},
"reply_id": 0,
"user": {
"id": 2,
"username": "[email protected]",
"call_name": "B B"
},
"name": null,
"content": "Meow",
"is_deleted": false,
"date_or_time": {
"date": null,
"time": "04:06 PM"
}
}
}
PATCH /api/communities/r/{reply_id}/
- 댓글 수정
- 권한: 관리자 혹은 작성자
- parameters: 상동
- input sample
- PATCH /api/communities/r/1/
{
"content": "Reply test"
}
{
"data": {
"id": 1,
"reply_id": 0,
"user": {
"id": 2,
"username": "[email protected]",
"call_name": "B B"
},
"name": null,
"content": "Reply test",
"is_deleted": false,
"date_or_time": {
"date": null,
"time": "04:06 PM"
}
}
}