私はspringbootを使用してREST Webサービスを作成しました。ユーザーには以下のURL用にリソースがあります正しいHTTPメソッドを指定してください
/users => get the users in system.(GET)
/adduser => Post a new user.(POST)
/addFriend/{friendID} => this method is to add the friendID into the current logged-in friend(the user resource has friend list) now my doubt its Its a POST request of a GET request. Currently GET method has solved my problem. But I am not sure about the correct method which is right one logically.