Hello Michele

It is one of the limitations of the default REST endpoints "nodes" and 
"properties" that it can deliver content from one workspace only - within one 
request.
Make to REST calls or do one of the following things, to overcome the 
limitation:

- implement a custom endpoint
- create JSON with freemarker (yeah, this works as well)
- use the templating functions jsonfn - which are not yet officially part of 
the product but which are working nicely and are really handy.

To solve your problem, i would say jsonfn is the quickest solution. Once you 
have understand the synopsis how to use it - it is *really* handy :-)

Links:
https://github.com/rah003/neat-jsonfn 
=> code for jsonfn on github

https://www.magnolia-cms.com/blogs/jan-haderka/detail~@json--rest--magnolia-and-the-creation-of-end-points-without-writing-a-single-line-of-java~.html
=> Blogpost about jsonfn ... probably not completely refelcting the current 
version but it gives you an idea what it is about

https://wiki.magnolia-cms.com/display/WIKI/Camera+Collection+module 
=> This was part of a workshop which covered the topic you're interested in. 
The module explained on the page was implementing both custom endpoins and a 
freemarker based JSON provider


i hope this helps,
kind regards,
 Christoph

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=50c16558-9f45-4a34-b051-df8b7ceb4cea


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to