댓글
show comment list
GET
http://api.phopo.best/api/posts/:post_pk/comment
Path Parameters
Name
Type
Description
post_pk
integer
'게시물의 pk'
Query Parameters
Name
Type
Description
page
integer
created_time
string
action
integer
"기본 댓글 화면 호출 할 경우 - 1000 알림을 통해 댓글 페이지에 갈 경우 - 2000
Headers
Name
Type
Description
Authorization
string
'규칙 참조'
{
"payload": {
"items": [
{
"id": 110,
"user": {
"id": 4,
"nickname": "최지석",
"profile_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/usr/%EC%97%AC%EC%9E%903.jpg",
"user_uid": "user3@naver.com"
},
"is_problem": false,
"contents": "ㅎ요터려",
"created": "2020-02-23T12:19:02.555234+09:00",
"myself": false
},
...
...
...
],
"created_time": "2020-02-23 03:19:02.555234+00:00",
"pageable": false
},
"message": "show comment list"
}
POST
http://api.phopo.best/api/posts/:post_pk/comment
Path Parameters
Name
Type
Description
post_pk
integer
Headers
Name
Type
Description
Authorization
string
'규칙 참조'
Request Body
Name
Type
Description
caption
string
'댓글 내용'
{
"payload": {
"result": true
},
"message": "Successful creation"
}
PATCH
http://api.phopo.best/api/posts/:post_pk/comment/:pk
Headers
Name
Type
Description
Authorization
string
'규칙 참조'
Request Body
Name
Type
Description
contents
string
'댓글 수정 내용'
{
"payload": {
"result": true
},
"message": "Successful update"
}
comment delete
DELETE
http://api.phopo.best/api/posts/:post_pk/comment/:pk
Path Parameters
Name
Type
Description
post_pk
integer
pk
integer
Headers
Name
Type
Description
Authorization
string
'규칙 참조'
{
"payload": {
"result": true
},
"message": "Successful delete"
}
Last updated
Was this helpful?