I have been working on a web app using a Rails API and AngularJS. As models I have Teams and Users. You can add existing users to your team at anytime.
Since I want to add users to a team from AngularJS I wonder which route / controller should handle this action. (Adding an existing users to team.users)
Would this be a PUT api/teams/:id/users or PUT api/teams/:id or even a POST to api/teams/:id/:users
Keep in mind I am not creating a new user here but appending an existing one to a team's users.
Thank you!