@@ -854,12 +854,12 @@ accomplished with the following route configuration:
854854 ..code-block ::yaml
855855
856856# app/config/routing.yml
857- api_show_post :
857+ api_post_show :
858858path :/api/posts/{id}
859859defaults :{ _controller: AppBundle:BlogApi:show }
860860methods :[GET, HEAD]
861861
862- api_edit_post :
862+ api_post_edit :
863863path :/api/posts/{id}
864864defaults :{ _controller: AppBundle:BlogApi:edit }
865865methods :[PUT]
@@ -873,11 +873,11 @@ accomplished with the following route configuration:
873873xsi : schemaLocation =" http://symfony.com/schema/routing
874874 http://symfony.com/schema/routing/routing-1.0.xsd" >
875875
876- <route id =" api_show_post " path =" /api/posts/{id}" methods =" GET|HEAD" >
876+ <route id =" api_post_show " path =" /api/posts/{id}" methods =" GET|HEAD" >
877877 <default key =" _controller" >AppBundle:BlogApi:show</default >
878878 </route >
879879
880- <route id =" api_edit_post " path =" /api/posts/{id}" methods =" PUT" >
880+ <route id =" api_post_edit " path =" /api/posts/{id}" methods =" PUT" >
881881 <default key =" _controller" >AppBundle:BlogApi:edit</default >
882882 </route >
883883 </routes >
@@ -889,11 +889,11 @@ accomplished with the following route configuration:
889889 use Symfony\Component\Routing\Route;
890890
891891 $collection = new RouteCollection();
892- $collection->add('api_show_post ', new Route('/api/posts/{id}', array(
892+ $collection->add('api_post_show ', new Route('/api/posts/{id}', array(
893893 '_controller' => 'AppBundle:BlogApi:show',
894894 ), array(), array(), '', array(), array('GET', 'HEAD')));
895895
896- $collection->add('api_edit_post ', new Route('/api/posts/{id}', array(
896+ $collection->add('api_post_edit ', new Route('/api/posts/{id}', array(
897897 '_controller' => 'AppBundle:BlogApi:edit',
898898 ), array(), array(), '', array(), array('PUT')));
899899