jasonmlutz / winner

Full stack survey app
0 stars 0 forks source link

Server-side resource bundling #13

Open jasonmlutz opened 2 years ago

jasonmlutz commented 2 years ago

In Votey, some controllers bundled all relevant resources. For example api/v3/responses_controller returned all data needed to display a Response object (respondent, answers, associated poll).

jasonmlutz commented 2 years ago

Related: #6 could be addressed by having a single type of api call perform the position swap server-side and return a single collection of children.

jasonmlutz commented 2 years ago

Related: #11 could receive a uniformly structured collection of objects and decrease the number of api calls needed for a single action (such as rendering a survey).