I'm looking at implementing a new RESTFul call where a User can follow/unfollow a generic 'thing' item, but I need to know the best or common approach below, 1 or 2?
1) A GET or POST on the following URL's:
user/{thing_to_follow_id)/follow
user/{thing_to_follow_id)/unfollow
Or
2) A POST containing thing_to_follow_id
POST
user/follow
A DELETE on
user/follow/{thing_to_follow_id}
The first seems the most restful, but it feels wrong to post an empty payload where the second allow me to do a GET and return all things a user is following.
What is the best approach here?