I want to retrieve all nodes of specified content type (as example'news') with GET method with REST, How can I achieve it? (first I want try it with firefox RESTClient and if it work implement it in my application)


The only way that core offers is building a view with a REST display. That is, in fact, the only way in core to have collections (a list of resources) for rest.

See https://www.drupal.org/project/graphql for another approach, that allows to execute a sort of query through services.

  • 1
    and if I want fetch contents from another source (another website or mobile app), how can I achieve it? create a views with REST display? – Yuseferi Nov 14 '15 at 10:03

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.