the-blue-alliance/the-blue-alliance — pull request #1049 by fangeugene (2014-06-18 03:18:29+00:00)
Title: API Team Updates. Fixes #1012

- `/api/v2/team/` changed to only return team data
- `/api/v2/team/(/(events` returns a list of event models the team attended in given year (defaults to current year)
- `/api/v2/team//event//awards` returns a list of award models for the team at the event
- `/api/v2/team//event//match` returns a list of match models for the team at the event

TODO: Put years_participated somewhere. I don't to put it in `/api/v2/team/` because that endpoint returns a Team model, as does `/api/v2/event//teams`, so I want to keep them consistent. But calculating years_participated requires quite a few DB accesses. We could just do `/api/v2/team//years_participated`, but it seems excessive to have it's own endpoint. Ideas?