Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 825 Bytes

[사용자] 팔로우.md

File metadata and controls

53 lines (35 loc) · 825 Bytes

팔로우

좋아하는 bj 를 팔로우 하는 기능
  • URL

    /follow

  • Method:

    | POST |

  • 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 follow required" } Cause: to 를 제공하지 않았을 때

    • Code: HTTP_404_NOT_FOUND
      Content: { "okay" : false, "msg":"no user found id {}" } Cause: 해당 id 의 유저가 존재하지 않을 때

  • Sample Call:

    {
      "to" : 3
    }
  • Notes: