Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.05 KB

[좋아요] 좋아요 취소.md

File metadata and controls

52 lines (32 loc) · 1.05 KB

좋아요 취소

따봉을 취소하는 기능

  • URL

    /like

  • Method:

    | DELETE |

  • URL Params

    Required:

    N/A

    Optional:

    N/A

  • Data Params

      {
          "clip_id": 3
      }
  • Success Response:

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

    • Code: 400 BAD REQUEST
      Content: { "okay": False, "msg": "clip_id required" }
      Reason: clip id 가 전달되지 않았을 때

    • Code: HTTP_404_NOT_FOUND
      Content: { "okay": False, "msg": "no like found" }
      Reason: 한 적도 없는 좋아요를 취소하려고 시도하는 경우

  • Sample Call:

    <Just a sample call to your endpoint in a runnable format ($.ajax call or a curl request) - this makes life easier and more predictable.>

  • Notes:

    <This is where all uncertainties, commentary, discussion etc. can go. I recommend timestamping and identifying oneself when leaving comments here.>