Open bvk123 opened 8 years ago
Currently only the first level "_embedded" resources are handled properly. Even if a resource has nested "_embedded" resources then HAL browser renders only the first level.
Example: { "_links": { "self": { "href": "http://example.com/book/123/" }, "authors": { "href": "http://example.com/book/123/authors/" } }, "_embedded": { "authors": [ { "_links": { "self": { "href": "http://example.com/author/a/" }, "topBooks": { "href": "http://example.com/author/a/topbooks/" } }, "_embedded": { "topBooks": [ { "_links": { "self": { "href": "http://example.com/book/234/" } }, "name": "Author A's most popular book" }, { "_links": { "self": { "href": "http://example.com/book/235/" } }, "name": "Author A's 2nd most popular book" } ] } } ] } }
{ "_links": { "self": { "href": "http://example.com/book/123/" }, "authors": { "href": "http://example.com/book/123/authors/" } }, "_embedded": { "authors": [ { "_links": { "self": { "href": "http://example.com/author/a/" }, "topBooks": { "href": "http://example.com/author/a/topbooks/" } }, "_embedded": { "topBooks": [ { "_links": { "self": { "href": "http://example.com/book/234/" } }, "name": "Author A's most popular book" }, { "_links": { "self": { "href": "http://example.com/book/235/" } }, "name": "Author A's 2nd most popular book" } ] } } ] } }
This is duplicate of issue #74.
Currently only the first level "_embedded" resources are handled properly. Even if a resource has nested "_embedded" resources then HAL browser renders only the first level.
Example:
{ "_links": { "self": { "href": "http://example.com/book/123/" }, "authors": { "href": "http://example.com/book/123/authors/" } }, "_embedded": { "authors": [ { "_links": { "self": { "href": "http://example.com/author/a/" }, "topBooks": { "href": "http://example.com/author/a/topbooks/" } }, "_embedded": { "topBooks": [ { "_links": { "self": { "href": "http://example.com/book/234/" } }, "name": "Author A's most popular book" }, { "_links": { "self": { "href": "http://example.com/book/235/" } }, "name": "Author A's 2nd most popular book" } ] } } ] } }