FriendsOfSymfony/FOSRestBundle — Issue #151: Sub-Resource actions URLs are incorrect
Author: Seldaek
Created: 2011-11-11 13:41:08+00:00
State: open

getFooBarsAction generates: `/foo/bars/{foo}.{_format}`. There are two problems here. First of all, the collection is `/foos`, so it shouldn't be `/foo/..`, this is fixable by doing `getFoosBarsAction`, but that doesn't mean what it does anymore, namely returning all bars of one foo.

The second issue is that `/bars` is the collection of all bars **in** this particular foo, so the URL ultimately should be: `/foos/{foo}/bars.{_format}`.