{"action":"created","issue":{"url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/49","labels_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/49/comments","events_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/49/events","html_url":"https://github.com/dunglas/DunglasApiBundle/issues/49","id":73936723,"number":49,"title":"Adding one custom operation without loosing the default ones","user":{"login":"soyuka","id":1321971,"avatar_url":"https://avatars.githubusercontent.com/u/1321971?v=3","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-07T10:39:25Z","updated_at":"2015-06-01T21:38:53Z","closed_at":null,"body":"Because of [this line](https://github.com/dunglas/DunglasApiBundle/blob/master/DependencyInjection/Compiler/ResourcePass.php#L36) if the resource already has one operation (in my example the custom one added), it won't add the default `GET`, `PUT`, `DELETE` operations.\r\n\r\nI know this is a nice behavior when it comes to add only the resources you want (like no `POST` in the collection from the readme) but when adding one resources it's bringing extra lines of code to get back the normal behavior.\r\n\r\nWhat about adding a parameter inside the resource that is beeing checked by the DI compilation to avoid loosing default routes?\r\n\r\nP.S.: Sorry for beeing a lazy guy \\o/"},"comment":{"url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/comments/107720571","html_url":"https://github.com/dunglas/DunglasApiBundle/issues/49#issuecomment-107720571","issue_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/49","id":107720571,"user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T21:38:53Z","updated_at":"2015-06-01T21:38:53Z","body":"Can you paste your resource class?"}}