mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
835 stars 157 forks source link

Support for nested "_embedded" items #83

Open bvk123 opened 8 years ago

bvk123 commented 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" } ] } } ] } }

kranjcec commented 8 years ago

This is duplicate of issue #74.