Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 860 Bytes

[사용자] 언팔로우.md

File metadata and controls

53 lines (35 loc) · 860 Bytes

언팔로우

언팔로우 하는 기능
  • URL

    /follow

  • Method:

    | DELETE |

  • URL Params

    N/A

    Optional:

    N/A

  • Data Params

    {
      "to" : 3
    }

    to: follow 할 사용자의 id

  • Success Response:

    • Code: 200
      Content: { "okay" : true }
  • Error Response:

    • Code: HTTP_400_BAD_REQUEST
      Content: { "okay" : false, "msg":"user id to unfollow required" } Cause: to 를 제공하지 않았을 때

    • Code: HTTP_404_NOT_FOUND
      Content: { "okay" : false, "msg":"user #{} did not followed user #{}" } Cause: 유저가 전에 팔로우 한 적이 없는데도 unfollow 하려고 할 때

  • Sample Call:

    {
      "to" : 3
    }
  • Notes: