3

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?

8

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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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