Returns json data about a single user.
-
URL
posts/:post_pk/comment
-
HEADER:
Authorization:<type=jwt> ex)Authorization:jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b......
-
Method:
GET
-
URL Params
Required:
post_pk=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content: "{"payload": [{"id": 3, "contents": "댓글", "created": "2020-02-07T13:51:18.936566+09:00", "modify_date": "2020-02-07T15:27:32.443929+09:00", "is_active": true, "delete_date": null, "user": 9, "post": 1637}, "message": "success create"}"
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
OR
- Code: 401 UNAUTHORIZED
Content:{ error : "You are unauthorized to make this request." }
- Code: 404 NOT FOUND