본문 바로가기

BackEnd/Django

[Django] Follow and UnFollow API


URL생성



API생성


다만 재밌는점은


.add메소드와


.remove메소드


.remove는

many to many 객체에서 사용할 수 있으며


deleted요청과 delete함수 없이 POST로 데이터를 삭제할 수 있다.

'BackEnd > Django' 카테고리의 다른 글

[Django]Following&Follower List만들기!  (0) 2018.11.05
[Django] User Profile  (0) 2018.11.05
[Django]Refactoring to like and unlike  (0) 2018.11.05
[Django]ExploreUsers 생성(User View!)  (0) 2018.11.05
[Django]Comment삭제(Delete Request)  (0) 2018.11.05