TheLoons / SportIM-service

Backend Webservice for SportIM
GNU General Public License v2.0
1 stars 0 forks source link

Backend not returning teams #45

Closed boccobrock closed 9 years ago

boccobrock commented 9 years ago

Logged in as rimando@test.com, getting teams from /team returns no teams, despite the user being an owner of 3 teams.

hjbrock commented 9 years ago

Are you using rest/team/edit or rest/team/view?

hjbrock commented 9 years ago

I just tested this. The bare /team GET was put in to get teams from a league. If you don't have the league parameter, you won't get anything back.

As long as you're using the endpoint I actually specified in my tickets for this, it works:

/rest/team/view - teams the user can view and require in events /rest/team/edit - teams the user can edit