{"action":"created","issue":{"url":"https://api.github.com/repos/willdurand/Hateoas/issues/239","repository_url":"https://api.github.com/repos/willdurand/Hateoas","labels_url":"https://api.github.com/repos/willdurand/Hateoas/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/willdurand/Hateoas/issues/239/comments","events_url":"https://api.github.com/repos/willdurand/Hateoas/issues/239/events","html_url":"https://github.com/willdurand/Hateoas/issues/239","id":174363393,"number":239,"title":"Links question ","user":{"login":"jorge07","id":4022187,"avatar_url":"https://avatars.githubusercontent.com/u/4022187?v=3","gravatar_id":"","url":"https://api.github.com/users/jorge07","html_url":"https://github.com/jorge07","followers_url":"https://api.github.com/users/jorge07/followers","following_url":"https://api.github.com/users/jorge07/following{/other_user}","gists_url":"https://api.github.com/users/jorge07/gists{/gist_id}","starred_url":"https://api.github.com/users/jorge07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorge07/subscriptions","organizations_url":"https://api.github.com/users/jorge07/orgs","repos_url":"https://api.github.com/users/jorge07/repos","events_url":"https://api.github.com/users/jorge07/events{/privacy}","received_events_url":"https://api.github.com/users/jorge07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-31T19:55:09Z","updated_at":"2016-10-10T11:56:02Z","closed_at":null,"body":"There is any way to display the method of the route? \r\n\r\nThanks in advance "},"comment":{"url":"https://api.github.com/repos/willdurand/Hateoas/issues/comments/252597918","html_url":"https://github.com/willdurand/Hateoas/issues/239#issuecomment-252597918","issue_url":"https://api.github.com/repos/willdurand/Hateoas/issues/239","id":252597918,"user":{"login":"maennchen","id":333918,"avatar_url":"https://avatars.githubusercontent.com/u/333918?v=3","gravatar_id":"","url":"https://api.github.com/users/maennchen","html_url":"https://github.com/maennchen","followers_url":"https://api.github.com/users/maennchen/followers","following_url":"https://api.github.com/users/maennchen/following{/other_user}","gists_url":"https://api.github.com/users/maennchen/gists{/gist_id}","starred_url":"https://api.github.com/users/maennchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maennchen/subscriptions","organizations_url":"https://api.github.com/users/maennchen/orgs","repos_url":"https://api.github.com/users/maennchen/repos","events_url":"https://api.github.com/users/maennchen/events{/privacy}","received_events_url":"https://api.github.com/users/maennchen/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T11:56:02Z","updated_at":"2016-10-10T11:56:02Z","body":"You can add something like this in the attributes (I'm not entirely sure about the syntax of the array in the annotations):\r\n\r\n```php\r\n/**\r\n * @Hateoas\\Relation(\r\n *     \"rel\",\r\n *     href = \"/somewhere\",\r\n *     attributes = {\r\n *         \"methods\": { \"GET\", \"POST\", \"PATCH\" },\r\n *     },\r\n * )\r\n */\r\n```"}}
{"actor":{"display_login":"maennchen"}}