{"action":"created","issue":{"url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/4","labels_url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/4/comments","events_url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/4/events","html_url":"https://github.com/guylabs/angular-spring-data-rest/pull/4","id":59389048,"number":4,"title":"Add support for embedded items of different kinds and multiplicity","user":{"login":"aderuwe","id":1125184,"avatar_url":"https://avatars.githubusercontent.com/u/1125184?v=3","gravatar_id":"","url":"https://api.github.com/users/aderuwe","html_url":"https://github.com/aderuwe","followers_url":"https://api.github.com/users/aderuwe/followers","following_url":"https://api.github.com/users/aderuwe/following{/other_user}","gists_url":"https://api.github.com/users/aderuwe/gists{/gist_id}","starred_url":"https://api.github.com/users/aderuwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aderuwe/subscriptions","organizations_url":"https://api.github.com/users/aderuwe/orgs","repos_url":"https://api.github.com/users/aderuwe/repos","events_url":"https://api.github.com/users/aderuwe/events{/privacy}","received_events_url":"https://api.github.com/users/aderuwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-01T09:05:53Z","updated_at":"2015-03-11T09:47:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/pulls/4","html_url":"https://github.com/guylabs/angular-spring-data-rest/pull/4","diff_url":"https://github.com/guylabs/angular-spring-data-rest/pull/4.diff","patch_url":"https://github.com/guylabs/angular-spring-data-rest/pull/4.patch"},"body":"Add support for embedded items of different kinds (not just arrays) and multiplicity (grouping of embedded items so nested embedded items are supported).\r\n\r\nThis breaks the tests for now - before we fix those, I'm curious about your opinion here."},"comment":{"url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/comments/78232566","html_url":"https://github.com/guylabs/angular-spring-data-rest/pull/4#issuecomment-78232566","issue_url":"https://api.github.com/repos/guylabs/angular-spring-data-rest/issues/4","id":78232566,"user":{"login":"guylabs","id":1892848,"avatar_url":"https://avatars.githubusercontent.com/u/1892848?v=3","gravatar_id":"","url":"https://api.github.com/users/guylabs","html_url":"https://github.com/guylabs","followers_url":"https://api.github.com/users/guylabs/followers","following_url":"https://api.github.com/users/guylabs/following{/other_user}","gists_url":"https://api.github.com/users/guylabs/gists{/gist_id}","starred_url":"https://api.github.com/users/guylabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guylabs/subscriptions","organizations_url":"https://api.github.com/users/guylabs/orgs","repos_url":"https://api.github.com/users/guylabs/repos","events_url":"https://api.github.com/users/guylabs/events{/privacy}","received_events_url":"https://api.github.com/users/guylabs/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T09:47:00Z","updated_at":"2015-03-11T09:47:00Z","body":"Ok I added the `embeddedNamedResources ` configuration property and when you set it to true, the JSON will be the way you need it. You can read more about it here: https://github.com/guylabs/angular-spring-data-rest#configuration-of-the-springdatarestadapter. There is also a test here: https://github.com/guylabs/angular-spring-data-rest/blob/master/test/angular-spring-data-rest-provider.embedded-named-resources.spec.js which tests this behavior.\r\n\r\nCould you please test this and let me know if it worked? Then I will release a new version and close this pull request. Is that ok for you guys?\r\n\r\nRegards,\r\n\r\nGuy"}}