Relation

로그인한 사용자를 from_user로 가지고, 입력한 pk를 가진 사용자를 to_user로 갖는 UserRelation object를 삭제합니다.

URL

/member/relation/

Method

DELETE

Header

Key Value Require
Authorization Token (해당 유저가 로그인시 받았던 token) True

Data Params

Key Description Type Require
to_user follow 관계를 삭제할 사용자의 pk Integer True

Success Response

HTTP Status code
204

Content

None

Error response

Not found error

HTTP Status code
404

Content

# 없는 관계에 접근(이미 삭제한 후 한번 더 실행) 

{
    "detail": "찾을 수 없습니다."
}

results matching ""

    No results matching ""