Let's say my API has the following routes:
And then I have the following controllers with the listed methods:
I'm trying to decide in which controllers the remaining requests would best be handled from a strict RESTful perspective. Would this
listMoviesByTheater (handles GET /theaters/:id/movies)
showTheatersByMovie (handles GET /movies/:id/theaters)
listByMovie (handles GET /movies/:id/theaters)
listByTheater (handles GET /theaters/:id/movies)
be more RESTful? If neither is more RESTful, which is a more common approach?
Basically, the question boils down to whether TheaterController should only provide access to Theater resources and MovieController should only provide access to Movie resources.