Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 922 Bytes

Comment.md

File metadata and controls

45 lines (24 loc) · 922 Bytes

Show User

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"}"
  • 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." }