{"action":"closed","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1508","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1508/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1508/events","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1508","id":157871792,"number":1508,"title":"Prefix is ignored with annotations","user":{"login":"JHGitty","id":5406438,"avatar_url":"https://avatars.githubusercontent.com/u/5406438?v=3","gravatar_id":"","url":"https://api.github.com/users/JHGitty","html_url":"https://github.com/JHGitty","followers_url":"https://api.github.com/users/JHGitty/followers","following_url":"https://api.github.com/users/JHGitty/following{/other_user}","gists_url":"https://api.github.com/users/JHGitty/gists{/gist_id}","starred_url":"https://api.github.com/users/JHGitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JHGitty/subscriptions","organizations_url":"https://api.github.com/users/JHGitty/orgs","repos_url":"https://api.github.com/users/JHGitty/repos","events_url":"https://api.github.com/users/JHGitty/events{/privacy}","received_events_url":"https://api.github.com/users/JHGitty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-01T10:17:59Z","updated_at":"2016-06-01T11:03:45Z","closed_at":"2016-06-01T11:03:45Z","body":"```php\r\nuse FOS\\RestBundle\\Controller\\Annotations as Rest;\r\n\r\nclass CategoryController extends Controller\r\n{\r\n    /**\r\n     * @Rest\\Get(\"/category/{name}\", name=\"api_category\", options={\"method_prefix\": false})\r\n     */\r\n    public function getCategoryAction($name)\r\n    {\r\n        return 'test';\r\n    }\r\n```\r\n\r\n```yaml\r\napi:\r\n    prefix:   /api\r\n    type:     rest\r\n    resource: \"@AppBundle/Controller/Api/\"\r\n```\r\n\r\nThis will result into `/category/{name}` instead of `/api/category/{name}`. Why?\r\n\r\nTested on `2.0.0-BETA3` and latest `dev-master`."}}
{"actor":{"display_login":"JHGitty"}}