YCPCS-481-TeamB / BaseballSim

CS481 Group Project
0 stars 0 forks source link

Game API Contents #60

Open bcoov opened 7 years ago

bcoov commented 7 years ago

"game" elements should have "team_one" and "team_two" members, whose value(s) are a dictionary containing the "id" and "name" for the respective game. Currently, if we want to display information for teams involved in a Game, we're restricted to either only displaying the team IDs (not helpful to the user) or performing a GET operation to each team involved to get that team's "name" value.

This could apply to other API "objects", but this is the only one I've come across so far.

bcoov commented 7 years ago

On a related note, do Game objects obtain a "outcome" element, or something along the same lines when they're considered complete?