Is anyone used put, get, post, delete annotations(https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Controller/Annotations/) in controller.
I\'m trying to u
You shouldn't put the id in the route (since that's equivalent to a get). Instead you should do this to force the id param to be sent through $_POST
/**
* @Route("/get", defaults={"_format" = "json"})
* @Post
*/
public function getObject() {
$id = $this->Request::createFromGlobals()->request->get('id');
$object = $this->getService()->findById($id);
return $object;
}