implemented the team api resource