I need a way to get the output of a view as a REST service in JSON format.

I read about the RestfulWS and the Services modules, but I didn't find enough documentation. Are these straight forward, or should I just go with a custom module?

up vote 8 down vote accepted

Perhaps Services Views module could be of interest here:

Views support for the Services module version 3.x and later.

It has currently two features: - Create view based resource creating Services display in a view - Execute any view of the system via views resource call

After enabling "views" resource in your services endpoint you can do GET request to:

http://example.com/<endpoint path>/views/<view name>

This will execute a view and pass results.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.