{"action":"created","issue":{"url":"https://api.github.com/repos/nesquena/rabl/issues/375","labels_url":"https://api.github.com/repos/nesquena/rabl/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/nesquena/rabl/issues/375/comments","events_url":"https://api.github.com/repos/nesquena/rabl/issues/375/events","html_url":"https://github.com/nesquena/rabl/issues/375","id":9126841,"number":375,"title":"Meta nodes for a collection","user":{"login":"jmonteiro","id":3586,"avatar_url":"https://avatars.githubusercontent.com/u/3586?v=3","gravatar_id":"","url":"https://api.github.com/users/jmonteiro","html_url":"https://github.com/jmonteiro","followers_url":"https://api.github.com/users/jmonteiro/followers","following_url":"https://api.github.com/users/jmonteiro/following{/other_user}","gists_url":"https://api.github.com/users/jmonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/jmonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmonteiro/subscriptions","organizations_url":"https://api.github.com/users/jmonteiro/orgs","repos_url":"https://api.github.com/users/jmonteiro/repos","events_url":"https://api.github.com/users/jmonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/jmonteiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-12-10T00:57:00Z","updated_at":"2015-07-08T23:06:35Z","closed_at":"2012-12-10T01:15:28Z","body":"Hey,\n\nSorry for using Issues to ask a question, but I couldn't find how to do that neither on issues nor on the wiki:\n\n**How can I create some static (meta) nodes when dealing with a collection?**\n\nFor instance, currently I have this code...\n\n    collection @fruits\n    attributes :name, :price\n\nThat generates this JSON:\n\n    {\n      \"fruits\":\n      [\n        {\n          \"fruit\":\n          {\n            \"name\": \"Apple\",\n            \"price\": \"0.99\"\n          }\n        },\n        {\n          \"fruit\":\n          {\n            \"name\": \"Banana\",\n            \"price\": \"1.10\"\n          }\n        }\n      ]\n    }\n\nBut I'd like to generate this:\n\n    {\n      \"fruits\":\n      [\n        {\n          \"fruit\":\n          {\n            \"name\": \"Apple\",\n            \"price\": \"0.99\"\n          }\n        },\n        {\n          \"fruit\":\n          {\n            \"name\": \"Banana\",\n            \"price\": \"1.10\"\n          }\n        }\n      ],\n      \"hypermedia\":\n      [\n        \"link\":\n        {\n          \"rel\": \"self\",\n          \"href\": \"/fruits\"\n        }\n      ]\n    }\n\nWhat should I add to my index.rabl in order to render this \"static\" node *hypermedia*?"},"comment":{"url":"https://api.github.com/repos/nesquena/rabl/issues/comments/119755201","html_url":"https://github.com/nesquena/rabl/issues/375#issuecomment-119755201","issue_url":"https://api.github.com/repos/nesquena/rabl/issues/375","id":119755201,"user":{"login":"jeremyblalock","id":955154,"avatar_url":"https://avatars.githubusercontent.com/u/955154?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyblalock","html_url":"https://github.com/jeremyblalock","followers_url":"https://api.github.com/users/jeremyblalock/followers","following_url":"https://api.github.com/users/jeremyblalock/following{/other_user}","gists_url":"https://api.github.com/users/jeremyblalock/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyblalock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyblalock/subscriptions","organizations_url":"https://api.github.com/users/jeremyblalock/orgs","repos_url":"https://api.github.com/users/jeremyblalock/repos","events_url":"https://api.github.com/users/jeremyblalock/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyblalock/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T23:06:35Z","updated_at":"2015-07-08T23:06:35Z","body":"@jmonteiro seems like that link doesn't work anymore. Do you know where it has been moved to?"}}